From ead20f5be91072bcd075dec09730ac5cbb5cc792 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 16 May 2017 16:30:03 -0700 Subject: [PATCH] Irc: log full tracebacks when disconnecting due to an error --- classes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes.py b/classes.py index 4ec23a7..a21c908 100644 --- a/classes.py +++ b/classes.py @@ -334,8 +334,7 @@ class Irc(utils.DeprecatedAttributesObject): # We also catch SystemExit here as a way to abort out connection threads properly, and stop the # IRC connection from freezing instead. except (OSError, RuntimeError, SystemExit) as e: - log.error('(%s) Disconnected from IRC: %s: %s', - self.name, type(e).__name__, str(e)) + log.exception('(%s) Disconnected from IRC:', self.name) self.disconnect()