Commit 480f00d8 authored by Shane Hathaway's avatar Shane Hathaway

Added again the fix that allows the user to see exceptions.

parent 8a8543df
...@@ -5,13 +5,14 @@ ...@@ -5,13 +5,14 @@
# python REPL channel. # python REPL channel.
# #
RCS_ID = '$Id: monitor.py,v 1.8 2000/06/02 14:22:48 brian Exp $' RCS_ID = '$Id: monitor.py,v 1.9 2000/07/21 18:59:08 shane Exp $'
import md5 import md5
import socket import socket
import string import string
import sys import sys
import time import time
import traceback
VERSION = string.split(RCS_ID)[2] VERSION = string.split(RCS_ID)[2]
...@@ -121,6 +122,8 @@ class monitor_channel (asynchat.async_chat): ...@@ -121,6 +122,8 @@ class monitor_channel (asynchat.async_chat):
self.multi_line = [] self.multi_line = []
(file, fun, line), t, v, tbinfo = asyncore.compact_traceback() (file, fun, line), t, v, tbinfo = asyncore.compact_traceback()
self.log_info('%s %s %s' %(t, v, tbinfo), 'warning') self.log_info('%s %s %s' %(t, v, tbinfo), 'warning')
traceback.print_exc()
tbinfo = None
finally: finally:
sys.stdout = oldout sys.stdout = oldout
sys.stderr = olderr sys.stderr = olderr
......
...@@ -5,13 +5,14 @@ ...@@ -5,13 +5,14 @@
# python REPL channel. # python REPL channel.
# #
RCS_ID = '$Id: monitor.py,v 1.8 2000/06/02 14:22:48 brian Exp $' RCS_ID = '$Id: monitor.py,v 1.9 2000/07/21 18:59:08 shane Exp $'
import md5 import md5
import socket import socket
import string import string
import sys import sys
import time import time
import traceback
VERSION = string.split(RCS_ID)[2] VERSION = string.split(RCS_ID)[2]
...@@ -121,6 +122,8 @@ class monitor_channel (asynchat.async_chat): ...@@ -121,6 +122,8 @@ class monitor_channel (asynchat.async_chat):
self.multi_line = [] self.multi_line = []
(file, fun, line), t, v, tbinfo = asyncore.compact_traceback() (file, fun, line), t, v, tbinfo = asyncore.compact_traceback()
self.log_info('%s %s %s' %(t, v, tbinfo), 'warning') self.log_info('%s %s %s' %(t, v, tbinfo), 'warning')
traceback.print_exc()
tbinfo = None
finally: finally:
sys.stdout = oldout sys.stdout = oldout
sys.stderr = olderr sys.stderr = olderr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment