diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-05-13 21:21:06 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-05-13 21:21:06 +0200 |
commit | cb59d60034b220fa4b23435954d1ffd4b9e7931f (patch) | |
tree | 195652aff1106d607facde8281ef2610d87a29ef | |
parent | 1d9fe3553e54930cce10dce465fe6437fb638264 (diff) | |
download | slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.gz slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.bz2 slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.tar.xz slixmpp-cb59d60034b220fa4b23435954d1ffd4b9e7931f.zip |
examples: Display the actual cause for a failed command.
-rwxr-xr-x | examples/pubsub_client.py | 2 |
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): |