File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/pip/_internal/network Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3030 {},
3131 False ,
3232 None ,
33- "Downloading http://example.com/ foo.tgz" ,
33+ "Downloading foo.tgz" ,
3434 ),
3535 (
3636 "http://example.com/foo.tgz" ,
3737 {"content-length" : "2" },
3838 False ,
3939 None ,
40- "Downloading http://example.com/ foo.tgz (2 bytes)" ,
40+ "Downloading foo.tgz (2 bytes)" ,
4141 ),
4242 (
4343 "http://example.com/foo.tgz" ,
4444 {"content-length" : "2" },
4545 True ,
4646 None ,
47- "Using cached http://example.com/ foo.tgz (2 bytes)" ,
47+ "Using cached foo.tgz (2 bytes)" ,
4848 ),
4949 (
5050 "https://files.pythonhosted.org/foo.tgz" ,
7272 {"content-length" : "200" },
7373 False ,
7474 100 ,
75- "Resuming download http://example.com/ foo.tgz (100 bytes/200 bytes)" ,
75+ "Resuming download foo.tgz (100 bytes/200 bytes)" ,
7676 ),
7777 ],
7878)
You can’t perform that action at this time.
0 commit comments