Add LeplFilter to RAM, not twice to console.

Fixes exception when sys.stderr is None.
This commit is contained in:
Florian Bruhin 2014-06-20 08:50:18 +02:00
parent 0fa309e2a4
commit 4909f3f0fe

View File

@ -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)