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

debugging messages

parent 53c949ab
No related branches found
No related tags found
2 merge requests!83was trying to get the tunnel based on the csrf-token header which is wrong. So...,!82was trying to get the tunnel based on the csrf-token header which is wrong. So...
Pipeline #55184 passed
......@@ -53,6 +53,7 @@ class TWSProxy(threading.Thread):
keepreading = False
if port is not None:
logger.debug('authenticated connection {}'.format(self.csock))
self.ssock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.ssock.setblocking(True)
try:
......@@ -190,7 +191,10 @@ def mainserver(port=None):
formatter = logging.Formater("%(asctime)s %(levelname)s:%(process)s: %(message)s")
handler.setFormattter(formatter)
logger.addHandler(handler)
except:
except Exception as e:
print(e)
import traceback
print(traceback.format_exc())
logging.basicConfig(filename=os.path.expanduser("~/.tws.log"),format="%(asctime)s %(levelname)s:%(process)s: %(message)s")
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
......
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