mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Handled detailedTracebacks again.
This commit is contained in:
parent
a23fbcfb1c
commit
a36f81e158
@ -63,7 +63,10 @@ class Formatter(logging.Formatter):
|
||||
for exn in deadlyExceptions:
|
||||
if issubclass(e.__class__, exn):
|
||||
raise
|
||||
return cgitb.text((E, e, tb)).rstrip('\r\n')
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user