diff options
author | Jonathan Robie <jonathan@apache.org> | 2011-01-10 13:48:35 +0000 |
---|---|---|
committer | Jonathan Robie <jonathan@apache.org> | 2011-01-10 13:48:35 +0000 |
commit | 598e5eacac716a9a3a812e9cf72b14bde57ed45a (patch) | |
tree | 2ddef7a401a4c59c6e569a5d2d0cf43e1a91fd47 /extras | |
parent | ba444bec10b0d84b81245eae06962326d1c5f82c (diff) | |
download | qpid-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 'extras')
-rw-r--r-- | extras/qmf/src/py/qmf/console.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extras/qmf/src/py/qmf/console.py b/extras/qmf/src/py/qmf/console.py index 45a8a61fa0..430ca60b98 100644 --- a/extras/qmf/src/py/qmf/console.py +++ b/extras/qmf/src/py/qmf/console.py @@ -53,6 +53,10 @@ class Console: """ Invoked when a connection is established to a broker """ pass + def brokerConnectionFailed(self, broker): + """ Invoked when a connection to a broker fails """ + pass + def brokerDisconnected(self, broker): """ Invoked when the connection to a broker is lost """ pass @@ -2510,6 +2514,8 @@ class Broker(Thread): except Exception, e: self.error = "Exception during connection setup: %s - %s" % (e.__class__.__name__, e) self.conn_exc = e + if self.session.console: + self.session.console.brokerConnectionFailed(self) return False # connection failed def _updateAgent(self, obj): |