From a7a81d15e8fb5e28326bf304230071d4dbb0745b Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Wed, 15 May 2024 11:29:16 -0400 Subject: [PATCH] Add debug logging --- test/test_capture_http_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_capture_http_proxy.py b/test/test_capture_http_proxy.py index f0741603..bbc1bddb 100644 --- a/test/test_capture_http_proxy.py +++ b/test/test_capture_http_proxy.py @@ -29,11 +29,15 @@ def handle_error(self, request, client_address): server = make_server('localhost', 0, wsgiprox, server_class=NoLogServer) addr, cls.port = server.socket.getsockname() + print(f"port: {cls.port}", flush=True) + cls.proxies = { 'https': 'https://localhost:' + str(cls.port), 'http': 'http://localhost:' + str(cls.port), } + print(f"proxies: {cls.proxies}", flush=True) + def run(): try: server.serve_forever()