Logging of connection cache state is framed with #ifndef NDEBUG   #endif.