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

fix(logging): make the verbosity option more eager #6

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yannick-Dayer
Copy link
Collaborator

@Yannick-Dayer Yannick-Dayer commented Sep 20, 2024

Ensure the verbosity option is handled before the configs are loaded so the logger level is set to the user's value in the config code.

Fixes #5.

Ensure the verbosity option is handled before the configs are loaded so
the logger level is set to the user's value in the config code.
@Yannick-Dayer
Copy link
Collaborator Author

This could be a solution but I have not tested it fully.

There seems to be some weird behavior when the verbosity option is not specified.

@Yannick-Dayer
Copy link
Collaborator Author

The config option and parameter are also set as "eager" so I don't know if the verbosity option will be the first to be handled in all cases.

@anjos
Copy link
Member

anjos commented Sep 21, 2024

Amazing work, thx! Does this require any change on the current setup?

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.

Config file loading does not respect CLI verbosity settings
2 participants