diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-09-13 15:14:41 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-09-13 15:14:41 +0000 |
commit | c21c28403985dbe438519f533dd450a6893a44f9 (patch) | |
tree | 156ebe284adb42a05f7cbbca398e25cae488af88 /cpp/src/IceSSL/SslClientTransceiver.cpp | |
parent | Change AddUserToAllowCategories to be: (diff) | |
download | ice-c21c28403985dbe438519f533dd450a6893a44f9.tar.bz2 ice-c21c28403985dbe438519f533dd450a6893a44f9.tar.xz ice-c21c28403985dbe438519f533dd450a6893a44f9.zip |
Now logging uses LoggerUtil.
Diffstat (limited to 'cpp/src/IceSSL/SslClientTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslClientTransceiver.cpp | 12 |
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; |