DrBotIRC: log exceptions sanely
This commit is contained in:
parent
732c7229a8
commit
f8674db4a9
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user