Print debug message when a client is connected

This commit is contained in:
Bálint Bokros 2017-12-20 11:34:21 +01:00
parent 7e79c22437
commit 44bf8349c9

View File

@ -13,6 +13,8 @@ class ZMQWebSocketHandler(WebSocketHandler):
super().__init__(application, request, **kwargs) super().__init__(application, request, **kwargs)
def open(self, *args, **kwargs): def open(self, *args, **kwargs):
logging.debug('WebSocket connection initiated')
def zmq_callback(msg_parts): def zmq_callback(msg_parts):
anchor, data = msg_parts anchor, data = msg_parts
logging.debug('Received on pull socket: {}'.format(data.decode())) logging.debug('Received on pull socket: {}'.format(data.decode()))