Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Leger2014-03-13 06:43:32 -0400
committerFrederic Leger2014-03-13 11:06:58 -0400
commitc5e711d87dbf7c682b0d1619dc636ca120f69a58 (patch)
treefe1e4177e45e4c850a4f67ac590f3f9da8c9ce1b /python/src/tcf/transport.py
parent4c41b370106e65a91f2e6a2694df631d26b6f5ef (diff)
downloadorg.eclipse.tcf-c5e711d87dbf7c682b0d1619dc636ca120f69a58.tar.gz
org.eclipse.tcf-c5e711d87dbf7c682b0d1619dc636ca120f69a58.tar.xz
org.eclipse.tcf-c5e711d87dbf7c682b0d1619dc636ca120f69a58.zip
Improve debug output in the case of exception.
Add the stacktrace at the time of the exception.
Diffstat (limited to 'python/src/tcf/transport.py')
-rw-r--r--python/src/tcf/transport.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/src/tcf/transport.py b/python/src/tcf/transport.py
index cab35dfb9..f46df217a 100644
--- a/python/src/tcf/transport.py
+++ b/python/src/tcf/transport.py
@@ -83,10 +83,12 @@ def openChannel(peer):
def channelOpened(channel):
assert channel not in _channels
_channels.append(channel)
- for l in _listeners:
+ for l in tuple(_listeners):
try:
l.onChannelOpen(channel)
except Exception as x:
+ import sys
+ x.tb = sys.exc_info()[2]
protocol.log("Exception in channel listener", x)

Back to the top