summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ObjectCache.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-09-15 09:06:32 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-09-15 09:06:32 +0000
commit2e12617033ccf3c9bbf5757ebf55d726cd66438c (patch)
tree87f6f8577ae4859c834ecc56de3cbb4d21cb78b8 /cpp/src/IceGrid/ObjectCache.cpp
parentReviewed slice comments (diff)
downloadice-2e12617033ccf3c9bbf5757ebf55d726cd66438c.tar.bz2
ice-2e12617033ccf3c9bbf5757ebf55d726cd66438c.tar.xz
ice-2e12617033ccf3c9bbf5757ebf55d726cd66438c.zip
Added more tracing
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.cpp')
-rw-r--r--cpp/src/IceGrid/ObjectCache.cpp13
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;
}