Skip to content

Commit 63bd865

Browse files
committed
Add logging
1 parent 55192a1 commit 63bd865

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pip/_internal/index/collector.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ def _get_simple_response(url: str, session: PipSession) -> Response:
171171
# downloaded it.
172172
_ensure_api_header(resp)
173173

174+
logger.debug(
175+
"Fetched page %s as %s",
176+
redact_auth_from_url(url),
177+
resp.headers.get("Content-Type", "Unknown"),
178+
)
179+
174180
return resp
175181

176182

0 commit comments

Comments
 (0)