3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Irc: log the offending line when an error is caught in handle_events

This commit is contained in:
James Lu 2015-09-13 17:58:59 -07:00
parent 1e6c5a231e
commit fd16a42708

View File

@ -213,6 +213,7 @@ class Irc():
hook_args = self.proto.handle_events(line)
except Exception:
log.exception('(%s) Caught error in handle_events, disconnecting!', self.name)
log.error('(%s) The offending line was: <- %s', self.name, line)
return
# Only call our hooks if there's data to process. Handlers that support
# hooks will return a dict of parsed arguments, which can be passed on