You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2013/10/24 18:04:01 UTC
svn commit: r1535425 -
/qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
Author: tross
Date: Thu Oct 24 16:04:00 2013
New Revision: 1535425
URL: http://svn.apache.org/r1535425
Log:
NO-JIRA - Added printed tracebacks for exceptions in the python router code.
Modified:
qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
Modified: qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py?rev=1535425&r1=1535424&r2=1535425&view=diff
==============================================================================
--- qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py (original)
+++ qpid/trunk/qpid/extras/dispatch/python/qpid/dispatch/router/router_engine.py Thu Oct 24 16:04:00 2013
@@ -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):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org