mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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:
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user