summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Topics.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-11-14 21:43:55 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-11-14 21:43:55 +0000
commit82383de63c5e63677c0152cfce1725b8d704d8cb (patch)
tree0ef3b8483d8d7c37813536b3a8e18e38768d341b /cpp/src/IceGrid/Topics.cpp
parentsynchronize with C++ for IceGrid changes (diff)
downloadice-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.cpp12
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;
}