aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework/socks5.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/rpc-tests/test_framework/socks5.py')
-rw-r--r--qa/rpc-tests/test_framework/socks5.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/qa/rpc-tests/test_framework/socks5.py b/qa/rpc-tests/test_framework/socks5.py
index 450bf3775e..dd7624d454 100644
--- a/qa/rpc-tests/test_framework/socks5.py
+++ b/qa/rpc-tests/test_framework/socks5.py
@@ -6,6 +6,9 @@
import socket, threading, queue
import traceback, sys
+import logging
+
+logger = logging.getLogger("TestFramework.socks5")
### Protocol constants
class Command:
@@ -112,10 +115,10 @@ class Socks5Connection(object):
cmdin = Socks5Command(cmd, atyp, addr, port, username, password)
self.serv.queue.put(cmdin)
- print('Proxy: ', cmdin)
+ logger.info('Proxy: %s', cmdin)
# Fall through to disconnect
except Exception as e:
- traceback.print_exc(file=sys.stderr)
+ logger.exception("socks5 request handling failed.")
self.serv.queue.put(e)
finally:
self.conn.close()