diff options
author | Frederic Leger | 2014-03-13 10:43:32 +0000 |
---|---|---|
committer | Frederic Leger | 2014-03-13 15:06:58 +0000 |
commit | c5e711d87dbf7c682b0d1619dc636ca120f69a58 (patch) | |
tree | fe1e4177e45e4c850a4f67ac590f3f9da8c9ce1b /python/src/tcf/transport.py | |
parent | 4c41b370106e65a91f2e6a2694df631d26b6f5ef (diff) | |
download | org.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.py | 4 |
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) |