feat: debug

parent f9a50751
...@@ -147,7 +147,9 @@ class SSHws(Namespace, BaseWebSocketHandler): ...@@ -147,7 +147,9 @@ class SSHws(Namespace, BaseWebSocketHandler):
def on_logout(self, connection): def on_logout(self, connection):
logger.debug("Session {} logout {}".format(request.sid, connection)) logger.debug("Session {} logout {}".format(request.sid, connection))
logger.debug("keys {}".format(self.clients[request.sid].keys()))
if connection and request.sid in self.clients[request.sid].keys(): if connection and request.sid in self.clients[request.sid].keys():
logger.debug("proxy : {}".format(self.clients[request.sid]["proxy"].keys()))
if connection in self.clients[request.sid]["proxy"].keys(): if connection in self.clients[request.sid]["proxy"].keys():
proxy = self.clients[request.sid]["proxy"][connection] proxy = self.clients[request.sid]["proxy"][connection]
del self.clients[request.sid]["proxy"][connection] del self.clients[request.sid]["proxy"][connection]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment