Skip to content

Fix configuring CLI logging on Python 3.9/3.10#2953

Merged
jvstme merged 1 commit intomasterfrom
issue_2951_cli_logging_error
Aug 6, 2025
Merged

Fix configuring CLI logging on Python 3.9/3.10#2953
jvstme merged 1 commit intomasterfrom
issue_2951_cli_logging_error

Conversation

@jvstme
Copy link
Copy Markdown
Collaborator

@jvstme jvstme commented Aug 6, 2025

Do not use logging.getLevelNamesMapping
introduced in 3.11.

No need to get the numeric levels at all - just
set the configured named levels on the handlers
and set DEBUG on the logger. This way, the logger
allows all messages, but level filtering is then
done by the handlers.

Fixes #2951

Do not use `logging.getLevelNamesMapping`
introduced in 3.11.

No need to get the numeric levels at all - just
set the configured named levels on the handlers
and set DEBUG on the logger. This way, the logger
allows all messages, but level filtering is then
done by the handlers.
@jvstme jvstme requested a review from peterschmidt85 August 6, 2025 17:31
@jvstme jvstme merged commit 6c492df into master Aug 6, 2025
26 checks passed
@jvstme jvstme deleted the issue_2951_cli_logging_error branch August 6, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CLI does not work on Python 3.9 and 3.10

2 participants