Skip to content

Commit

Permalink
Set temporary debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed May 15, 2024
1 parent 9c40169 commit 6c7432d
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': 'http://user@localhost:' + str(cls.port),
'http': 'http://user@localhost:' + str(cls.port)
}

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

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

0 comments on commit 6c7432d

Please sign in to comment.