modifié: superTornado.py
This commit is contained in:
parent
d483ea750d
commit
dfd2051bf9
@ -90,7 +90,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
log.printL("->Websocket opened : " + self.request.remote_ip,25)
|
||||
iden = self.current_user
|
||||
if self.autorisation == "yes":
|
||||
log.printL("->"iden + " : Authorized user connection : "+self.request.remote_ip,20)
|
||||
log.printL("->"+iden + " : Authorized user connection : "+self.request.remote_ip,20)
|
||||
if blind == True:
|
||||
log.printL('->Send audio alarm authorized user',20)
|
||||
log.printL('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")',10)
|
||||
@ -98,7 +98,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
log.printL('->Send visual alarm authorized user',20)
|
||||
log.printL('maison.request("GET", "micom/lamp.php?room=salon1&order=1")',10)
|
||||
else :
|
||||
log.printL("->"iden + " as IllegalUser : Unauthorized user connection : " + self.request.remote_ip,30)
|
||||
log.printL("->"+iden + " as IllegalUser : Unauthorized user connection : " + self.request.remote_ip,30)
|
||||
if blind == True:
|
||||
log.printL('->Send audio alarm unauthorized user',30)
|
||||
log.printL('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")',10)
|
||||
@ -115,9 +115,9 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
log.printL("->Websocket closed : "+self.request.remote_ip,25)
|
||||
iden = self.current_user
|
||||
if self.get_autorisation == "yes":
|
||||
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 +" as IllegalUser,Unauthorized user deconnection,"+self.request.remote_ip,30)
|
||||
|
||||
if blind == True:
|
||||
log.printL('->Send audio alarm deconnection user', 20)
|
||||
|
Reference in New Issue
Block a user