diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-11-14 21:43:55 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-11-14 21:43:55 +0000 |
commit | 82383de63c5e63677c0152cfce1725b8d704d8cb (patch) | |
tree | 0ef3b8483d8d7c37813536b3a8e18e38768d341b /cpp/src/IceGrid/Topics.cpp | |
parent | synchronize with C++ for IceGrid changes (diff) | |
download | ice-82383de63c5e63677c0152cfce1725b8d704d8cb.tar.bz2 ice-82383de63c5e63677c0152cfce1725b8d704d8cb.tar.xz ice-82383de63c5e63677c0152cfce1725b8d704d8cb.zip |
Added IceStorm templates, fixed IcePatch2 template and added more
parameters to Glacier2 template.
Added warning if init() on observer fails.
Diffstat (limited to 'cpp/src/IceGrid/Topics.cpp')
-rw-r--r-- | cpp/src/IceGrid/Topics.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/Topics.cpp b/cpp/src/IceGrid/Topics.cpp index 824b08376e8..fad7c26c99b 100644 --- a/cpp/src/IceGrid/Topics.cpp +++ b/cpp/src/IceGrid/Topics.cpp @@ -32,9 +32,10 @@ public: } void - ice_exception(const Ice::Exception&) + ice_exception(const Ice::Exception& ex) { - // Ignore + Ice::Warning out(_observer->ice_communicator()->getLogger()); + out << "couldn't initialize registry observer:\n" << ex; } private: @@ -64,7 +65,8 @@ public: void ice_exception(const Ice::Exception& ex) { - // Ignore + Ice::Warning out(_observer->ice_communicator()->getLogger()); + out << "couldn't initialize node observer:\n" << ex; } private: @@ -204,10 +206,6 @@ NodeObserverTopic::subscribe(const NodeObserverPrx& observer, int serial) } serial = _serial; } - // - // TODO: Race conditions are possible here, we should - // check the serial and eventually retry if it changed. - // observer->init_async(new NodeInitCB(this, observer, serial), nodes); return; } |