examples: Display the actual cause for a failed command.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-13 21:21:06 +02:00
parent 1d9fe3553e
commit cb59d60034

View file

@ -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):