Skip to content

Commit d060a68

Browse files
committed
Improve presentation of non-verbose downloads with non-PyPI indexes
1 parent 7f76f2b commit d060a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pip/_internal/network/download.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def _log_download(
5151
total_length: int | None,
5252
range_start: int | None = 0,
5353
) -> Iterable[bytes]:
54-
if link.netloc == PyPI.file_storage_domain:
55-
url = link.show_url
56-
else:
54+
if logger.getEffectiveLevel() > logging.INFO:
5755
url = link.url_without_fragment
56+
else:
57+
url = link.show_url
5858

5959
logged_url = redact_auth_from_url(url)
6060

0 commit comments

Comments
 (0)