summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslClientTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/SslClientTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslClientTransceiver.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/cpp/src/IceSSL/SslClientTransceiver.cpp b/cpp/src/IceSSL/SslClientTransceiver.cpp
index cb40d8a39ae..3f59872d8b0 100644
--- a/cpp/src/IceSSL/SslClientTransceiver.cpp
+++ b/cpp/src/IceSSL/SslClientTransceiver.cpp
@@ -8,16 +8,13 @@
//
// **********************************************************************
-#include <Ice/Logger.h>
#include <Ice/LoggerUtil.h>
-#include <Ice/Buffer.h>
#include <Ice/Network.h>
+#include <Ice/LocalException.h>
#include <IceSSL/OpenSSL.h>
#include <IceSSL/SslClientTransceiver.h>
#include <IceSSL/OpenSSLPluginI.h>
#include <IceSSL/TraceLevels.h>
-
-#include <Ice/LocalException.h>
#include <IceSSL/OpenSSLUtils.h>
#include <IceSSL/Exception.h>
#include <IceSSL/OpenSSLJanitors.h>
@@ -80,10 +77,9 @@ IceSSL::SslClientTransceiver::write(Buffer& buf, int timeout)
{
if(_traceLevels->network >= 3)
{
- ostringstream s;
- s << "sent " << bytesWritten << " of " << packetSize;
- s << " bytes via ssl\n" << fdToString(SSL_get_fd(_sslConnection));
- _logger->trace(_traceLevels->networkCat, s.str());
+ Trace out(_logger, _traceLevels->networkCat);
+ out << "sent " << bytesWritten << " of " << packetSize;
+ out << " bytes via ssl\n" << fdToString(SSL_get_fd(_sslConnection));
}
totalBytesWritten += bytesWritten;