Commit 400432a6 authored by Jim Fulton's avatar Jim Fulton

Fixed bug that prevented tracebacks from being included in log output.

parent ac7e952e
...@@ -92,11 +92,11 @@ def stupid_log_write(subsystem, severity, summary, detail, error): ...@@ -92,11 +92,11 @@ def stupid_log_write(subsystem, severity, summary, detail, error):
if error: if error:
try: try:
_stupid_dest(format_exception( _stupid_dest.write(format_exception(
error[0], error[1], error[2], error[0], error[1], error[2],
trailer='\n', limit=100)) trailer='\n', limit=100))
except: except:
_stupid_dest("%s: %s\n" % error[:2]) _stupid_dest.write("%s: %s\n" % error[:2])
def format_exception(etype,value,tb,limit=None, delimiter='\n', def format_exception(etype,value,tb,limit=None, delimiter='\n',
......
...@@ -92,11 +92,11 @@ def stupid_log_write(subsystem, severity, summary, detail, error): ...@@ -92,11 +92,11 @@ def stupid_log_write(subsystem, severity, summary, detail, error):
if error: if error:
try: try:
_stupid_dest(format_exception( _stupid_dest.write(format_exception(
error[0], error[1], error[2], error[0], error[1], error[2],
trailer='\n', limit=100)) trailer='\n', limit=100))
except: except:
_stupid_dest("%s: %s\n" % error[:2]) _stupid_dest.write("%s: %s\n" % error[:2])
def format_exception(etype,value,tb,limit=None, delimiter='\n', def format_exception(etype,value,tb,limit=None, delimiter='\n',
......
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