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":
|
if handler[1](connection, event) == "NO MORE":
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exc_type, exc_value, exc_traceback = sys.exc_info()
|
|
||||||
self.log.error("exception floated up to DrBotIrc!")
|
self.log.error("exception floated up to DrBotIrc!")
|
||||||
self.log.error(exc_type + ": " + exc_value)
|
self.log.exception(e)
|
||||||
self.log.error(exc_traceback)
|
|
||||||
|
|
||||||
def xmlrpc_register_function(self, func, name):
|
def xmlrpc_register_function(self, func, name):
|
||||||
"""Add a method to the XML-RPC interface."""
|
"""Add a method to the XML-RPC interface."""
|
||||||
|
Loading…
Reference in New Issue
Block a user