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/SslServerTransceiver.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/SslServerTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslServerTransceiver.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cpp/src/IceSSL/SslServerTransceiver.cpp b/cpp/src/IceSSL/SslServerTransceiver.cpp index 960efe90a40..9077dfa9342 100644 --- a/cpp/src/IceSSL/SslServerTransceiver.cpp +++ b/cpp/src/IceSSL/SslServerTransceiver.cpp @@ -8,15 +8,12 @@ // // ********************************************************************** -#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/OpenSSLPluginI.h> #include <IceSSL/TraceLevels.h> - -#include <Ice/LocalException.h> #include <IceSSL/OpenSSLUtils.h> #include <IceSSL/Exception.h> #include <IceSSL/OpenSSLJanitors.h> @@ -79,10 +76,9 @@ IceSSL::SslServerTransceiver::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; @@ -179,7 +175,6 @@ IceSSL::SslServerTransceiver::handshake(int timeout) if(i == 0) { - cerr << "-" << flush; return 0; } @@ -191,7 +186,6 @@ IceSSL::SslServerTransceiver::handshake(int timeout) if(i == 0) { - cerr << "-" << flush; return 0; } } |