Skip to content
Snippets Groups Projects
Commit d42776a2 authored by Chris Hines's avatar Chris Hines
Browse files

moar logging on tws

parent 3a5b4d92
3 merge requests!77Revert "disable agressive kill and restart",!64Test,!63Dev
Pipeline #16406 passed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment