mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 08:26:21 +00:00
Handle 'MILCInterface' object has no attribute 'log_level' error (#24549)
This commit is contained in:
parent
6693a30671
commit
465cbc87de
@ -119,8 +119,11 @@ def filter_help() -> str:
|
||||
|
||||
def _set_log_level(level):
|
||||
cli.acquire_lock()
|
||||
old = cli.log_level
|
||||
cli.log_level = level
|
||||
try:
|
||||
old = cli.log_level
|
||||
cli.log_level = level
|
||||
except AttributeError:
|
||||
old = cli.log.level
|
||||
cli.log.setLevel(level)
|
||||
logging.root.setLevel(level)
|
||||
cli.release_lock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user