diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-09-15 12:32:45 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-09-15 12:32:45 +0000 |
commit | 0df21eda351a4e9ea3d7647bf1a91d8bee903b61 (patch) | |
tree | 4f6ad583db87fe40bc0de570a4cfb4d575e615ca /cpp/src/IceGrid/ObjectCache.cpp | |
parent | Fix (diff) | |
download | ice-0df21eda351a4e9ea3d7647bf1a91d8bee903b61.tar.bz2 ice-0df21eda351a4e9ea3d7647bf1a91d8bee903b61.tar.xz ice-0df21eda351a4e9ea3d7647bf1a91d8bee903b61.zip |
Better tracing
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/ObjectCache.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.cpp b/cpp/src/IceGrid/ObjectCache.cpp index a93996a43bd..6d9163db72b 100644 --- a/cpp/src/IceGrid/ObjectCache.cpp +++ b/cpp/src/IceGrid/ObjectCache.cpp @@ -18,8 +18,7 @@ using namespace std; using namespace IceGrid; -ObjectCache::ObjectCache(const Ice::CommunicatorPtr& communicator, const TraceLevelsPtr& traceLevels) : - Cache<Ice::Identity, ObjectEntry>(traceLevels), +ObjectCache::ObjectCache(const Ice::CommunicatorPtr& communicator) : _communicator(communicator) { } @@ -51,7 +50,7 @@ ObjectCache::add(const string& adapterId, const string& endpoints, const ObjectD } p->second.insert(desc.id); - if(_traceLevels->object > 0) + if(_traceLevels && _traceLevels->object > 0) { Ice::Trace out(_traceLevels->logger, _traceLevels->objectCat); out << "added object `" << Ice::identityToString(desc.id) << "'"; @@ -88,7 +87,7 @@ ObjectCache::remove(const Ice::Identity& id) _types.erase(p); } - if(_traceLevels->object > 0) + if(_traceLevels && _traceLevels->object > 0) { Ice::Trace out(_traceLevels->logger, _traceLevels->objectCat); out << "removed object `" << Ice::identityToString(id) << "'"; |