mirror of https://github.com/Shizmob/pydle.git
Improve handler failure logging.
This commit is contained in:
parent
2b36834f41
commit
a945074b8d
|
@ -358,7 +358,7 @@ class BasicClient:
|
||||||
method = 'on_unknown'
|
method = 'on_unknown'
|
||||||
getattr(self, method)(message)
|
getattr(self, method)(message)
|
||||||
except:
|
except:
|
||||||
self.logger.error('Failed to execute %s handler.', method)
|
self.logger.exception('Failed to execute %s handler.', method)
|
||||||
|
|
||||||
def on_unknown(self, message):
|
def on_unknown(self, message):
|
||||||
""" Unknown command. """
|
""" Unknown command. """
|
||||||
|
|
Loading…
Reference in New Issue