From 663c43a5dd3d23377a079d68bd2ce0378952da4e Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 3 Mar 2014 15:17:34 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superTornado.py b/superTornado.py index ba94554..8a55c42 100644 --- a/superTornado.py +++ b/superTornado.py @@ -78,7 +78,7 @@ class DisconnectionHandler(BaseHandler): class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): def open(self) : - if not self.get_current_user : + if not self.current_user : self.close() return log.printL("->Websocket opened : " + self.request.remote_ip,25) @@ -109,9 +109,9 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): log.printL("->Websocket closed : "+self.request.remote_ip,25) iden = self.current_user if iden != "IllegalUser": - log.printL("->"+iden+",Authorized user deconnection,"+self.request.remote_ip,20) + log.printL("->"+iden+" : Authorized user deconnection : "+self.request.remote_ip,20) else : - log.printL("->"+iden +" as IllegalUser,Unauthorized user deconnection,"+self.request.remote_ip,30) + log.printL("->"+iden +" : Unauthorized user deconnection : "+self.request.remote_ip,30) if blind == True: log.printL('->Send audio alarm deconnection user', 20)