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

Merged
merged 2 commits into from
Feb 13, 2025

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.

@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
@ichard26 ichard26 removed their assignment Jan 12, 2025
pradyunsg and others added 2 commits February 13, 2025 10:02
This helps ensure that all relevant context is presented when a failure
happens and diagnosis is being done through the use of `--debug`.
@pradyunsg pradyunsg force-pushed the verbose-logging-with-debug branch from c175032 to ec67776 Compare February 13, 2025 10:02
@pradyunsg pradyunsg enabled auto-merge (squash) February 13, 2025 10:03
@pradyunsg pradyunsg merged commit 93d43c9 into pypa:main Feb 13, 2025
31 checks passed
ichard26 added a commit to ichard26/pip that referenced this pull request Feb 13, 2025
This helps ensure that all relevant context is presented when a failure
happens and diagnosis is being done through the use of `--debug`.

Co-authored-by: Pradyun Gedam <[email protected]>
Co-authored-by: Richard Si <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants