Skip to content

Don't re-write root logger log level #96

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

snakingfire
Copy link
Contributor

Currently the way that constants.py installs coloredlogs causes it to override the root logger to DEBUG, as well as enabling coloredlogs on the root logger, which can be undesirable. To fix that, instead we pass the (already created) logger instance into the install command, so that only log levels and coloring for that logger are modified.

Currently the way that constants.py installs coloredlogs causes it to override the root logger to DEBUG, as well as enabling coloredlogs on the root logger, which can be undesirable. To fix that, instead we pass the (already created) logger instance into the install command, so that only log levels and coloring for that logger are modified.
@snakingfire
Copy link
Contributor Author

@dachafra Hope you don't mind me popping in here, just a small QOL fix if you're open to it.

@dachafra dachafra self-assigned this May 1, 2025
@dachafra dachafra added the enhancement New feature or request label May 1, 2025
@dachafra
Copy link
Member

dachafra commented May 1, 2025

sure @snakingfire, thank you for the fix!

@dachafra dachafra merged commit 30be50e into citiususc:main May 1, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants