test: Log IP of download server in get_previous_releases.py

This commit is contained in:
Ava Chow
2025-12-10 11:07:52 -08:00
parent c1f0a89d9c
commit cdaf25f9c3

View File

@@ -122,6 +122,9 @@ def download_from_url(url, archive):
if response.status != 200:
raise RuntimeError(f"HTTP request failed with status code: {response.status}")
sock_info = response.fp.raw._sock.getpeername()
print(f"Connected to {sock_info[0]}")
total_size = int(response.getheader("Content-Length"))
progress_bytes = 0