dont log websocket events

This commit is contained in:
j 2016-02-23 23:30:56 +05:30
parent e531419364
commit fae4458e8b

View file

@ -64,8 +64,8 @@ class Handler(WebSocketHandler):
main.add_callback(lambda: self.write_message(message)) main.add_callback(lambda: self.write_message(message))
def trigger_event(event, data): def trigger_event(event, data):
if len(state.websockets): #if len(state.websockets):
logger.debug('trigger event %s %s %s', event, data, len(state.websockets)) # logger.debug('trigger event %s %s %s', event, data, len(state.websockets))
for ws in state.websockets: for ws in state.websockets:
try: try:
ws.post(event, data) ws.post(event, data)