Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 'MILCInterface' object has no attribute 'log_level' error #24549

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/python/qmk/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down