Skip to content

Commit cdaf25f

Browse files
committed
test: Log IP of download server in get_previous_releases.py
1 parent c1f0a89 commit cdaf25f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/get_previous_releases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def progress_hook(progress_bytes, total_size):
122122
if response.status != 200:
123123
raise RuntimeError(f"HTTP request failed with status code: {response.status}")
124124

125+
sock_info = response.fp.raw._sock.getpeername()
126+
print(f"Connected to {sock_info[0]}")
127+
125128
total_size = int(response.getheader("Content-Length"))
126129
progress_bytes = 0
127130

0 commit comments

Comments
 (0)