Improve handler failure logging.

This commit is contained in:
Shiz 2014-02-09 22:45:18 +01:00
parent 2b36834f41
commit a945074b8d
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class BasicClient:
method = 'on_unknown'
getattr(self, method)(message)
except:
self.logger.error('Failed to execute %s handler.', method)
self.logger.exception('Failed to execute %s handler.', method)
def on_unknown(self, message):
""" Unknown command. """