test: Log IP of download server in get_previous_releases.py

This commit is contained in:
Ava Chow committed 2025-12-10 13:49:11 -08:00
1 parent c1f0a89d9c
commit cdaf25f9c3
1 file changed
+3
+3
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