Skip to content
Snippets Groups Projects
Commit 39dfb82e authored by patavirt's avatar patavirt
Browse files

Fixup

parent b4e20697
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ class with_log_level(contextlib.ContextDecorator):
def __init__(self, level):
self._level = level
def _recreate_cm(self):
return with_log_level(self._level)
def __enter__(self):
self._old_level = int(logger.level)
logger.setLevel(self._level)
......
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