From 2f897d69dddbb1177aa78159c9d87759845ad870 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sun, 7 Jun 2015 11:59:34 +0200 Subject: Some debugging stuff --- push.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/push.py b/push.py index c09db69..ef0f1ee 100755 --- a/push.py +++ b/push.py @@ -38,12 +38,15 @@ class WebSocketClient(ws4py.client.WebSocketBaseClient): msg_handler = MessageHandler(self.cfg) msg_handler.handle_messages() elif msg == 'R': # Restart + debug("Received restart command.") raise WebSocketRestart() elif msg == 'E': # Error - Requires manual reconnect + debug("Received error command.") raise WebSocketError() elif msg == '#': # Keep-alive packet pass else: # Ignore unknown commands + debug("Received unknown command \"%s\"." % msg) pass def closed(self, code, reason=None): -- cgit v1.2.3