diff --git a/src/cpp/ripple/AutoSocket.h b/src/cpp/ripple/AutoSocket.h index 7e40e7a6d..7caa431bf 100644 --- a/src/cpp/ripple/AutoSocket.h +++ b/src/cpp/ripple/AutoSocket.h @@ -218,13 +218,15 @@ protected: ((bytesTransferred < 3) || ((mBuffer[2] < 127) && (mBuffer[2] > 31))) && ((bytesTransferred < 4) || ((mBuffer[3] < 127) && (mBuffer[3] > 31)))) { // not ssl - Log(lsTRACE, AutoSocketPartition) << "non-SSL"; + if (AutoSocketPartition.doLog(lsTRACE)) + Log(lsTRACE, AutoSocketPartition) << "non-SSL"; mSecure = false; cbFunc(ec); } else { // ssl - Log(lsTRACE, AutoSocketPartition) << "SSL"; + if (AutoSocketPartition.doLog(lsTRACE)) + Log(lsTRACE, AutoSocketPartition) << "SSL"; mSecure = true; mSocket->async_handshake(ssl_socket::server, cbFunc); }