From cb59d60034b220fa4b23435954d1ffd4b9e7931f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 13 May 2018 21:21:06 +0200 Subject: [PATCH] examples: Display the actual cause for a failed command. --- examples/pubsub_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):