We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f76f2b commit d060a68Copy full SHA for d060a68
src/pip/_internal/network/download.py
@@ -51,10 +51,10 @@ def _log_download(
51
total_length: int | None,
52
range_start: int | None = 0,
53
) -> Iterable[bytes]:
54
- if link.netloc == PyPI.file_storage_domain:
55
- url = link.show_url
56
- else:
+ if logger.getEffectiveLevel() > logging.INFO:
57
url = link.url_without_fragment
+ else:
+ url = link.show_url
58
59
logged_url = redact_auth_from_url(url)
60
0 commit comments