Add LeplFilter to RAM, not twice to console.
Fixes exception when sys.stderr is None.
This commit is contained in:
parent
0fa309e2a4
commit
4909f3f0fe
@ -95,7 +95,7 @@ def init_log(args):
|
||||
root.addHandler(console)
|
||||
if ram is not None:
|
||||
root.addHandler(ram)
|
||||
console.addFilter(LeplFilter())
|
||||
ram.addFilter(LeplFilter())
|
||||
root.setLevel(logging.NOTSET)
|
||||
logging.captureWarnings(True)
|
||||
qInstallMessageHandler(qt_message_handler)
|
||||
|
Loading…
Reference in New Issue
Block a user