Skip to content

Commit 837e838

Browse files
committed
Enable verbose logging with --debug
This helps ensure that all relevant context is presented when a failure happens and diagnosis is being done through the use of `--debug`.
1 parent 1a8c17a commit 837e838

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pip/_internal/cli/base_command.py

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def _main(self, args: List[str]) -> int:
172172

173173
# Set verbosity so that it can be used elsewhere.
174174
self.verbosity = options.verbose - options.quiet
175+
if options.debug_mode:
176+
self.verbosity = 2
175177

176178
reconfigure(no_color=options.no_color)
177179
level_number = setup_logging(

0 commit comments

Comments
 (0)