Skip to content
Snippets Groups Projects
Commit e9a23495 authored by Timothe Jost's avatar Timothe Jost
Browse files

fix : add file_level and terminal_level in enable_logging

parent 5b9acb8a
No related branches found
No related tags found
No related merge requests found
Pipeline #130629 passed
__version__ = "0.0.57"
__version__ = "0.0.58"
from . import loggs
from .pipes import *
......
......@@ -87,9 +87,9 @@ def enable_logging(
min(terminal_level, file_level)
) # set logger level to the lowest usefull, to be sure we can capture messages necessary in handlers
for handler in [fh, ch]:
for handler, level in zip([fh, ch], [file_level, terminal_level]):
handler.setLevel(file_level)
handler.setLevel(level)
logger.addHandler(handler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment