From 257e4bfb0670fda83311d18adfa6e70d32015a40 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 19 Apr 2013 01:28:03 -0700 Subject: [PATCH] Prevent spurious log entries. --- src/cpp/ripple/AutoSocket.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }