From f8674db4a9cfcd79217f0b6129659b4a47e95334 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 26 Jul 2012 21:20:26 -0500 Subject: [PATCH] DrBotIRC: log exceptions sanely --- DrBotIRC.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DrBotIRC.py b/DrBotIRC.py index 150f773..71fda73 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -205,10 +205,8 @@ class DrBotIRC(irclib.IRC): if handler[1](connection, event) == "NO MORE": return except Exception as e: - exc_type, exc_value, exc_traceback = sys.exc_info() self.log.error("exception floated up to DrBotIrc!") - self.log.error(exc_type + ": " + exc_value) - self.log.error(exc_traceback) + self.log.exception(e) def xmlrpc_register_function(self, func, name): """Add a method to the XML-RPC interface."""