DrBotIRC: log exceptions sanely

This commit is contained in:
Brian S. Stephan 2012-07-26 21:20:26 -05:00
parent 732c7229a8
commit f8674db4a9
1 changed files with 1 additions and 3 deletions

View File

@ -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."""