[rhmessaging-commits] rhmessaging commits: r1459 - in mgmt: notes and 1 other directory.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Dec 11 17:41:25 EST 2007
Author: justi9
Date: 2007-12-11 17:41:25 -0500 (Tue, 11 Dec 2007)
New Revision: 1459
Modified:
mgmt/cumin/python/cumin/__init__.py
mgmt/notes/justin-todo.txt
Log:
Improves the printlns for broker registration.
Modified: mgmt/cumin/python/cumin/__init__.py
===================================================================
--- mgmt/cumin/python/cumin/__init__.py 2007-12-11 22:21:52 UTC (rev 1458)
+++ mgmt/cumin/python/cumin/__init__.py 2007-12-11 22:41:25 UTC (rev 1459)
@@ -64,16 +64,18 @@
def run(self):
while True:
for reg in BrokerRegistration.select():
- print "reg", reg
-
if reg.broker is None or reg.broker.managedBroker not in \
self.model.data.connectedBrokers:
+ print "Trying to connect to broker '%s' at %s:%i" % \
+ (reg.name, reg.host, reg.port or 5672)
+
try:
self.model.data.connectToBroker \
(reg.host, reg.port or 5672)
+
+ print "Connection succeeded"
except socket.error:
- print "Failed connecting to broker '%s' at %s:%i" % \
- (reg.name, reg.host, reg.port or 5672)
+ print "Connection failed"
- sleep(15)
+ sleep(15)
Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt 2007-12-11 22:21:52 UTC (rev 1458)
+++ mgmt/notes/justin-todo.txt 2007-12-11 22:41:25 UTC (rev 1459)
@@ -4,8 +4,6 @@
* Add legends to charts
- * Better demo data
-
* Make group slider in broker browser work
* Add a groups column to the browser broker list
@@ -29,6 +27,8 @@
Deferred
+ * Better demo data
+
* Make mini status tables a little prettier
* Add queue journal stats
More information about the rhmessaging-commits
mailing list