diff options
| author | Devendra | 2014-06-19 18:35:23 +0530 |
|---|---|---|
| committer | Devendra | 2014-06-19 18:35:23 +0530 |
| commit | 9063eb7b70d5087aa624fd7c5b832cdcd0a7577e (patch) | |
| tree | cfb4259bca616c511af8979de08beb58f85bd467 | |
| parent | af3488cada249b6e2810d35f4b1793cff02d38c8 (diff) | |
| download | pubnub-python-9063eb7b70d5087aa624fd7c5b832cdcd0a7577e.tar.bz2 | |
changed error to ok for connect , discon and recon for console
| -rw-r--r-- | python/examples/console.py | 6 | ||||
| -rw-r--r-- | python/examples/pubnub-console/pubnub-console | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/python/examples/console.py b/python/examples/console.py index bf82b5f..dfd59f5 100644 --- a/python/examples/console.py +++ b/python/examples/console.py @@ -219,13 +219,13 @@ def _subscribe_command_handler(channel): print_error(r, ch if ch is not None else channel) def _disconnect(r): - print_error("DISCONNECTED", r) + print_ok("DISCONNECTED", r) def _reconnect(r): - print_error("RECONNECTED", r) + print_ok("RECONNECTED", r) def _connect(r): - print_error("CONNECTED", r) + print_ok("CONNECTED", r) pubnub.subscribe(channel, _callback, _error, connect=_connect, disconnect=_disconnect, reconnect=_reconnect) diff --git a/python/examples/pubnub-console/pubnub-console b/python/examples/pubnub-console/pubnub-console index 058253f..dfd59f5 100644 --- a/python/examples/pubnub-console/pubnub-console +++ b/python/examples/pubnub-console/pubnub-console @@ -1,5 +1,3 @@ -#!/usr/bin/python - ## www.pubnub.com - PubNub Real-time push service in the cloud. # coding=utf8 @@ -221,13 +219,13 @@ def _subscribe_command_handler(channel): print_error(r, ch if ch is not None else channel) def _disconnect(r): - print_error("DISCONNECTED", r) + print_ok("DISCONNECTED", r) def _reconnect(r): - print_error("RECONNECTED", r) + print_ok("RECONNECTED", r) def _connect(r): - print_error("CONNECTED", r) + print_ok("CONNECTED", r) pubnub.subscribe(channel, _callback, _error, connect=_connect, disconnect=_disconnect, reconnect=_reconnect) |
