diff options
author | Marc Laukien <marc@zeroc.com> | 2002-02-10 12:52:13 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-02-10 12:52:13 +0000 |
commit | 44ecadaa1264fcc3d5eb9390da499d18cf3056cf (patch) | |
tree | 83ba8979ed4866e864e5f2e95fb3cf176e2b8b58 /cpp/src/Ice/Proxy.cpp | |
parent | fix (diff) | |
download | ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.tar.bz2 ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.tar.xz ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.zip |
LoggerUtil
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 1360616a5c1..e304489c6fe 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -18,7 +18,7 @@ #include <Ice/Reference.h> #include <Ice/Endpoint.h> #include <Ice/Instance.h> -#include <Ice/Logger.h> +#include <Ice/LoggerUtil.h> #include <Ice/TraceLevels.h> #include <Ice/ConnectionFactory.h> #include <Ice/Connection.h> @@ -555,18 +555,16 @@ IceProxy::Ice::Object::__handleException(const LocalException& ex, int& cnt) { if (traceLevels->retry >= 1) { - ostringstream s; - s << "cannot retry operation call because retry limit has been exceeded\n" << ex; - logger->trace(traceLevels->retryCat, s.str()); + Trace out(logger, traceLevels->retryCat); + out << "cannot retry operation call because retry limit has been exceeded\n" << ex; } ex.ice_throw(); } if (traceLevels->retry >= 1) { - ostringstream s; - s << "re-trying operation call because of exception\n" << ex; - logger->trace(traceLevels->retryCat, s.str()); + Trace out(logger, traceLevels->retryCat); + out << "re-trying operation call because of exception\n" << ex; } // @@ -595,9 +593,8 @@ IceProxy::Ice::Object::__locationForward(const LocationForward& ex) if (traceLevels->locationForward >= 1) { - ostringstream s; - s << "location forward for object with identity `" << _reference.identity << "'"; - logger->trace(traceLevels->locationForwardCat, s.str()); + Trace out(logger, traceLevels->retryCat); + out << "location forward for object with identity `" << _reference.identity << "'"; } */ } |