aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevendra2014-06-19 18:35:23 +0530
committerDevendra2014-06-19 18:35:23 +0530
commit9063eb7b70d5087aa624fd7c5b832cdcd0a7577e (patch)
treecfb4259bca616c511af8979de08beb58f85bd467
parentaf3488cada249b6e2810d35f4b1793cff02d38c8 (diff)
downloadpubnub-python-9063eb7b70d5087aa624fd7c5b832cdcd0a7577e.tar.bz2
changed error to ok for connect , discon and recon for console
-rw-r--r--python/examples/console.py6
-rw-r--r--python/examples/pubnub-console/pubnub-console8
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)