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))
def trigger_event(event, data):
if len(state.websockets):
logger.debug('trigger event %s %s %s', event, data, len(state.websockets))
#if len(state.websockets):
# logger.debug('trigger event %s %s %s', event, data, len(state.websockets))
for ws in state.websockets:
try:
ws.post(event, data)