From d42776a2dd15f42f3a3958da6fafe1a765a42c3c Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Mon, 15 Mar 2021 11:05:19 +1100 Subject: [PATCH] moar logging on tws --- twsproxy/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twsproxy/__init__.py b/twsproxy/__init__.py index 8bbc39f..fa87e9a 100644 --- a/twsproxy/__init__.py +++ b/twsproxy/__init__.py @@ -104,8 +104,10 @@ class TWSProxy(threading.Thread): import requests logger = logging.getLogger() token = b'Authentication: (?P<authtok>\w+)[\W|$]' + token = b'Authentication: (?P<authtok>.*)[\W|$]' m = re.search(token,header) if m: + logger.debug('found the authentication header {}'.format(m.groupdict())) authtok = m.groupdict()['authtok'] s = requests.Session() url = TES+'tunnelstat/'+authtok.decode() -- GitLab