summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2011-01-10 13:48:35 +0000
committerJonathan Robie <jonathan@apache.org>2011-01-10 13:48:35 +0000
commit598e5eacac716a9a3a812e9cf72b14bde57ed45a (patch)
tree2ddef7a401a4c59c6e569a5d2d0cf43e1a91fd47 /tools
parentba444bec10b0d84b81245eae06962326d1c5f82c (diff)
downloadqpid-python-598e5eacac716a9a3a812e9cf72b14bde57ed45a.tar.gz
Prints connection error information.
Previously, connection errors were silently ignored. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1057195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rwxr-xr-xtools/src/py/qpid-printevents4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/src/py/qpid-printevents b/tools/src/py/qpid-printevents
index 260d0df79d..2be2f0be8b 100755
--- a/tools/src/py/qpid-printevents
+++ b/tools/src/py/qpid-printevents
@@ -37,6 +37,10 @@ class EventConsole(Console):
print strftime("%c", gmtime(time())), "NOTIC qpid-printevents:brokerConnected broker=%s" % broker.getUrl()
sys.stdout.flush()
+ def brokerConnectionFailed(self, broker):
+ print strftime("%c", gmtime(time())), "NOTIC qpid-printevents:brokerConnectionFailed broker=%s %s" % (broker.getUrl(), str(broker.conn_exc))
+ sys.stdout.flush()
+
def brokerDisconnected(self, broker):
print strftime("%c", gmtime(time())), "NOTIC qpid-printevents:brokerDisconnected broker=%s" % broker.getUrl()
sys.stdout.flush()