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:
if issubclass(e.__class__, exn):
raise
if conf.detailedTracebacks:
return cgitb.text((E, e, tb)).rstrip('\r\n')
else:
return logging.Formatter.formatException(self, (E, e, tb))
class BetterStreamHandler(logging.StreamHandler):