summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2013-10-24 16:04:00 +0000
committerTed Ross <tross@apache.org>2013-10-24 16:04:00 +0000
commite6b294484fc040bec1a47826df124603287dab2d (patch)
treeb7c62a09df2476a36433e17516c46ed0e9055056 /qpid
parent96cb698658efdadeaa97b6f896d270fc04330822 (diff)
downloadqpid-python-e6b294484fc040bec1a47826df124603287dab2d.tar.gz
NO-JIRA - Added printed tracebacks for exceptions in the python router code.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535425 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py b/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
index f8b2dd9c94..0bc7ba72c2 100644
--- a/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
+++ b/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
@@ -95,12 +95,14 @@ class RouterEngine:
"""
"""
try:
- if addr.find('Mtemp.') == 0:
+ if addr.find('Mtemp.') == 0: ## This is a temporary measure until dynamic is added to Messenger
return
if addr.find('M') == 0:
self.mobile_address_engine.add_local_address(addr[1:])
except Exception, e:
self.log(LOG_ERROR, "Exception in new-address processing: exception=%r" % e)
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ traceback.print_tb(exc_traceback)
def addressRemoved(self, addr):
@@ -113,6 +115,8 @@ class RouterEngine:
self.mobile_address_engine.del_local_address(addr[1:])
except Exception, e:
self.log(LOG_ERROR, "Exception in del-address processing: exception=%r" % e)
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ traceback.print_tb(exc_traceback)
def handleTimerTick(self):
@@ -128,6 +132,8 @@ class RouterEngine:
self.node_tracker.tick(now)
except Exception, e:
self.log(LOG_ERROR, "Exception in timer processing: exception=%r" % e)
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ traceback.print_tb(exc_traceback)
def handleControlMessage(self, opcode, body, link_id):
@@ -182,6 +188,8 @@ class RouterEngine:
except Exception, e:
self.log(LOG_ERROR, "Exception in raw message processing: properties=%r body=%r exception=%r" %
(message_properties, body, e))
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ traceback.print_tb(exc_traceback)
def getRouterData(self, kind):