aboutsummaryrefslogtreecommitdiffstats
path: root/push.py
diff options
context:
space:
mode:
Diffstat (limited to 'push.py')
-rwxr-xr-xpush.py3
1 files changed, 3 insertions, 0 deletions
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):