aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2018-05-13 19:21:06 (GMT)
committerEmmanuel Gil Peyrot2018-05-13 19:21:06 (GMT)
commitcb59d60034b220fa4b23435954d1ffd4b9e7931f (patch)
tree195652aff1106d607facde8281ef2610d87a29ef
parent1d9fe3553e54930cce10dce465fe6437fb638264 (diff)
downloadslixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.gz
slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.xz
examples: Display the actual cause for a failed command.
-rwxr-xr-xexamples/pubsub_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index c5de2cf..c072bee 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -40,7 +40,7 @@ class PubsubClient(slixmpp.ClientXMPP):
try:
yield from getattr(self, self.action)()
except:
- logging.error('Could not execute: %s', self.action)
+ logging.exception('Could not execute %s:', self.action)
self.disconnect()
def nodes(self):