diff options
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/ObjectCache.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 <Ice/Communicator.h> #include <Ice/IdentityUtil.h> +#include <Ice/LoggerUtil.h> #include <IceGrid/ObjectCache.h> #include <IceGrid/NodeSessionI.h> @@ -49,6 +50,12 @@ ObjectCache::add(const string& adapterId, const string& endpoints, const ObjectD p = _types.insert(p, make_pair(entry->getType(), set<Ice::Identity>())); } 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; } |