From 46eba991e4d7774d02a24053a68b6644c9c0ded3 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 10 Jun 2024 14:02:41 +0100 Subject: [PATCH] debug output --- oml/tor_request.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oml/tor_request.py b/oml/tor_request.py index bfeaa7e..d5b819f 100644 --- a/oml/tor_request.py +++ b/oml/tor_request.py @@ -32,7 +32,7 @@ def getaddrinfo(*args): return [(socket.AF_INET, socket.SOCK_STREAM, 6, '', (args[0], args[1]))] def create_tor_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, - source_address=None): + source_address=None): host, port = address err = None af = socket.AF_INET @@ -40,6 +40,9 @@ def create_tor_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, proto = 6 sa = address sock = None + + logger.debug('make tor connection to: %s', address) + try: sock = socks.socksocket(af, socktype, proto) if timeout is not socket._GLOBAL_DEFAULT_TIMEOUT: