Handled detailedTracebacks again.

This commit is contained in:
Jeremy Fincher 2003-12-06 13:23:20 +00:00
parent a23fbcfb1c
commit a36f81e158

View File

@ -63,7 +63,10 @@ class Formatter(logging.Formatter):
for exn in deadlyExceptions: for exn in deadlyExceptions:
if issubclass(e.__class__, exn): if issubclass(e.__class__, exn):
raise raise
if conf.detailedTracebacks:
return cgitb.text((E, e, tb)).rstrip('\r\n') return cgitb.text((E, e, tb)).rstrip('\r\n')
else:
return logging.Formatter.formatException(self, (E, e, tb))
class BetterStreamHandler(logging.StreamHandler): class BetterStreamHandler(logging.StreamHandler):