Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
f1f875063c
@ -119,8 +119,11 @@ def filter_help() -> str:
|
|||||||
|
|
||||||
def _set_log_level(level):
|
def _set_log_level(level):
|
||||||
cli.acquire_lock()
|
cli.acquire_lock()
|
||||||
old = cli.log_level
|
try:
|
||||||
cli.log_level = level
|
old = cli.log_level
|
||||||
|
cli.log_level = level
|
||||||
|
except AttributeError:
|
||||||
|
old = cli.log.level
|
||||||
cli.log.setLevel(level)
|
cli.log.setLevel(level)
|
||||||
logging.root.setLevel(level)
|
logging.root.setLevel(level)
|
||||||
cli.release_lock()
|
cli.release_lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user