summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-13 21:21:06 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-13 21:21:06 +0200
commitcb59d60034b220fa4b23435954d1ffd4b9e7931f (patch)
tree195652aff1106d607facde8281ef2610d87a29ef /examples
parent1d9fe3553e54930cce10dce465fe6437fb638264 (diff)
downloadslixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.gz
slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.bz2
slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.xz
slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.zip
examples: Display the actual cause for a failed command.
Diffstat (limited to 'examples')
-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 c5de2cf1..c072bee1 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):