From 2e12617033ccf3c9bbf5757ebf55d726cd66438c Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 15 Sep 2005 09:06:32 +0000 Subject: Added more tracing --- cpp/src/IceGrid/ObjectCache.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpp/src/IceGrid/ObjectCache.cpp') diff --git a/cpp/src/IceGrid/ObjectCache.cpp b/cpp/src/IceGrid/ObjectCache.cpp index fc1b1063fd4..a93996a43bd 100644 --- a/cpp/src/IceGrid/ObjectCache.cpp +++ b/cpp/src/IceGrid/ObjectCache.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -49,6 +50,12 @@ ObjectCache::add(const string& adapterId, const string& endpoints, const ObjectD p = _types.insert(p, make_pair(entry->getType(), set())); } p->second.insert(desc.id); + + if(_traceLevels->object > 0) + { + Ice::Trace out(_traceLevels->logger, _traceLevels->objectCat); + out << "added object `" << Ice::identityToString(desc.id) << "'"; + } } ObjectEntryPtr @@ -81,6 +88,12 @@ ObjectCache::remove(const Ice::Identity& id) _types.erase(p); } + if(_traceLevels->object > 0) + { + Ice::Trace out(_traceLevels->logger, _traceLevels->objectCat); + out << "removed object `" << Ice::identityToString(id) << "'"; + } + return entry; } -- cgit v1.2.3