#ifndef NDEBUG statement for the connection cache state logging stuff has been changed to #ifdef _DEBUG.