From c40abef36931c8cb034e7d693f8d306072d39adb Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 15 Mar 2021 11:58:27 +1100
Subject: [PATCH] why doesn't my thingo workgit add __init__.py!

---
 twsproxy/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/twsproxy/__init__.py b/twsproxy/__init__.py
index cd15035..8365572 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))
-- 
GitLab