Skip to content

Commit

Permalink
Add print logging for cls.port and cls.proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed May 14, 2024
1 parent fee8518 commit 8b09d29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_capture_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ def handle_error(self, request, client_address):
server = make_server('localhost', 0, wsgiprox, server_class=NoLogServer)
addr, cls.port = server.socket.getsockname()

print(f"cls.port: {cls.port}", flush=True)

cls.proxies = {'https': 'localhost:' + str(cls.port),
'http': 'localhost:' + str(cls.port)
}

print(f"cls.proxies: {cls.proxies}", flush=True)

def run():
try:
server.serve_forever()
Expand Down

0 comments on commit 8b09d29

Please sign in to comment.