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

remove some extra debug messages

parent ac7b82ac
No related branches found
No related tags found
3 merge requests!77Revert "disable agressive kill and restart",!64Test,!63Dev
Pipeline #16418 passed
......@@ -50,7 +50,6 @@ class TWSProxy(threading.Thread):
keepreading = False
if port is not None:
logger.debug('Found the correct SSH Port')
self.ssock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.ssock.setblocking(True)
try:
......@@ -98,8 +97,9 @@ class TWSProxy(threading.Thread):
@staticmethod
def verifyauth(header):
# We are looking for either
# 1. An Authentication header that we can map to an ssh session
# 2. A cookie called twsproxyauth that we can make to an ssh sesssion
# 1. An Authentication: token ... header that we can map to an ssh session
# 2. the string token=.... (usually appearing as a url query parameter)
# 3. A cookie called twsproxyauth that we can make to an ssh sesssion
import re
import requests
logger = logging.getLogger()
......@@ -110,7 +110,6 @@ class TWSProxy(threading.Thread):
authtok = m.groupdict()['authtok'].rstrip()
s = requests.Session()
url = TES+'tunnelstat/'+authtok.decode()
logger.debug('will query {}'.format(url))
try:
r = s.get(url)
port = r.json()
......@@ -130,7 +129,6 @@ class TWSProxy(threading.Thread):
authtok = m.groupdict()['authtok'].rstrip()
s = requests.Session()
url = TES+'tunnelstat/'+authtok.decode()
logger.debug('will query {}'.format(url))
try:
r = s.get(url)
port = r.json()
......@@ -155,7 +153,6 @@ 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))
......
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