log ip
This commit is contained in:
parent
b8c7f3efe2
commit
fabfb46140
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class WebSocketHandler(tornado.websocket.WebSocketHandler):
|
|||
# the client connected
|
||||
def open(self, p = None):
|
||||
self.__class__.connections.add(self)
|
||||
logger.info("New client connected")
|
||||
logger.info(f"New client connected: {self.request.remote_ip}")
|
||||
self.strokes = []
|
||||
# self.write_message("hello!")
|
||||
|
||||
|
@ -118,7 +118,7 @@ class WebSocketHandler(tornado.websocket.WebSocketHandler):
|
|||
# client disconnected
|
||||
def on_close(self):
|
||||
self.__class__.rmConnection(self)
|
||||
logger.info("Client disconnected")
|
||||
logger.info(f"Client disconnected: {self.request.remote_ip}")
|
||||
|
||||
def submit_strokes(self):
|
||||
if len(self.strokes) < 1:
|
||||
|
|
Loading…
Reference in a new issue