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

Enable verbose logging with --debug #12710

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pradyunsg
Copy link
Member

This helps ensure that all relevant context is presented when a failure happens and diagnosis is being done through the use of --debug.

This helps ensure that all relevant context is presented when a failure
happens and diagnosis is being done through the use of `--debug`.
@uranusjr
Copy link
Member

Should we do even larger? I have no idea how many levels of verbosity we actually have…

@ichard26
Copy link
Member

ichard26 commented Jul 6, 2024

Setting verbosity to 2 should be enough as it enables the DEBUG logging level:

if verbosity >= 2:
level_number = logging.DEBUG
elif verbosity == 1:
level_number = VERBOSE
elif verbosity == -1:
level_number = logging.WARNING
elif verbosity == -2:
level_number = logging.ERROR
elif verbosity <= -3:
level_number = logging.CRITICAL
else:
level_number = logging.INFO

This just needs a changelog entry, and it should be good to go!

@ichard26 ichard26 self-assigned this Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants