From fd16a4270824c4c669762c5b8e327740fc16e764 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 13 Sep 2015 17:58:59 -0700 Subject: [PATCH] Irc: log the offending line when an error is caught in handle_events --- classes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/classes.py b/classes.py index cdb57f4..9e5e6f5 100644 --- a/classes.py +++ b/classes.py @@ -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