diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-04 16:36:09 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-04 16:36:09 +0000 |
commit | 22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c (patch) | |
tree | d18c790a8e35de14015ddd7b14c49bcb19c28b5b /cpp/src/Ice/CommunicatorI.cpp | |
parent | Fixed bug 1647 (diff) | |
download | ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.tar.bz2 ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.tar.xz ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.zip |
Added process logger
Diffstat (limited to 'cpp/src/Ice/CommunicatorI.cpp')
-rw-r--r-- | cpp/src/Ice/CommunicatorI.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/Ice/CommunicatorI.cpp b/cpp/src/Ice/CommunicatorI.cpp index d56d618eaa8..1bdeb18fc40 100644 --- a/cpp/src/Ice/CommunicatorI.cpp +++ b/cpp/src/Ice/CommunicatorI.cpp @@ -48,7 +48,6 @@ static IceUtil::StaticMutex gcMutex = ICE_STATIC_MUTEX_INITIALIZER; static GarbageCollectorStats gcStats; static int gcTraceLevel; static string gcTraceCat; -static LoggerPtr gcLogger; static int gcInterval; static void @@ -58,7 +57,7 @@ printGCStats(const IceInternal::GCStats& stats) { if(gcTraceLevel > 1) { - Trace out(gcLogger, gcTraceCat); + Trace out(getProcessLogger(), gcTraceCat); out << stats.collected << "/" << stats.examined << ", " << stats.time * 1000 << "ms"; } ++gcStats.runs; @@ -94,7 +93,7 @@ Ice::CommunicatorI::destroy() { if(gcTraceLevel) { - Trace out(gcLogger, gcTraceCat); + Trace out(getProcessLogger(), gcTraceCat); out << "totals: " << gcStats.collected << "/" << gcStats.examined << ", " << gcStats.time * 1000 << "ms" << ", " << gcStats.runs << " run"; if(gcStats.runs != 1) @@ -287,7 +286,6 @@ Ice::CommunicatorI::CommunicatorI(const InitializationData& initData) { gcTraceLevel = _instance->traceLevels()->gc; gcTraceCat = _instance->traceLevels()->gcCat; - gcLogger = _instance->initializationData().logger; gcInterval = _instance->initializationData().properties->getPropertyAsInt("Ice.GC.Interval"); gcOnce = false; } |