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(
51
51
total_length : int | None ,
52
52
range_start : int | None = 0 ,
53
53
) -> Iterable [bytes ]:
54
- if link .netloc == PyPI .file_storage_domain :
55
- url = link .show_url
56
- else :
54
+ if logger .getEffectiveLevel () > logging .INFO :
57
55
url = link .url_without_fragment
56
+ else :
57
+ url = link .show_url
58
58
59
59
logged_url = redact_auth_from_url (url )
60
60
Original file line number Diff line number Diff line change 30
30
{},
31
31
False ,
32
32
None ,
33
- "Downloading http://example.com/ foo.tgz" ,
33
+ "Downloading foo.tgz" ,
34
34
),
35
35
(
36
36
"http://example.com/foo.tgz" ,
37
37
{"content-length" : "2" },
38
38
False ,
39
39
None ,
40
- "Downloading http://example.com/ foo.tgz (2 bytes)" ,
40
+ "Downloading foo.tgz (2 bytes)" ,
41
41
),
42
42
(
43
43
"http://example.com/foo.tgz" ,
44
44
{"content-length" : "2" },
45
45
True ,
46
46
None ,
47
- "Using cached http://example.com/ foo.tgz (2 bytes)" ,
47
+ "Using cached foo.tgz (2 bytes)" ,
48
48
),
49
49
(
50
50
"https://files.pythonhosted.org/foo.tgz" ,
72
72
{"content-length" : "200" },
73
73
False ,
74
74
100 ,
75
- "Resuming download http://example.com/ foo.tgz (100 bytes/200 bytes)" ,
75
+ "Resuming download foo.tgz (100 bytes/200 bytes)" ,
76
76
),
77
77
],
78
78
)
You can’t perform that action at this time.
0 commit comments