diff --git a/twsproxy/__init__.py b/twsproxy/__init__.py index cd150352024807af004686e6c7c0d3d8228a3f82..83655720c40a54ebbf57c0727847a3eceebb272a 100644 --- a/twsproxy/__init__.py +++ b/twsproxy/__init__.py @@ -66,7 +66,6 @@ class TWSProxy(threading.Thread): return (None,None) else: logger.error('Failed to authenticate to the SSH Tunnel') - logger.error(header) self.csock.close() closed.set() return (None,None) @@ -108,7 +107,7 @@ class TWSProxy(threading.Thread): token = b'Authorization: token (?P<authtok>.*)[\W|$]' m = re.search(token,header) if m: - logger.debug('found the authentication header {}'.format(m.groupdict())) + logger.debug('found the Authorization header {}'.format(m.groupdict())) authtok = m.groupdict()['authtok'] s = requests.Session() url = TES+'tunnelstat/'+authtok.decode() @@ -130,6 +129,7 @@ class TWSProxy(threading.Thread): except: raise Exception('unable to get a port number for the authtok {}'.format(r.text)) return port + logger.debug('no token yet {} {}'.format(header, token)) return None # if m: # print('match verify!',m.group(0))