Restore original trace method, move full stack trace to another method

This commit is contained in:
dpedu 2015-08-08 21:42:31 -07:00
parent 55192d4928
commit bcdfc87a1b
1 changed files with 6 additions and 1 deletions

View File

@ -279,6 +279,11 @@ class IRCCore(asynchat.async_chat):
@staticmethod
def trace():
"""Return the stack trace of the bot as a string"""
return traceback.format_exc()
@staticmethod
def fulltrace():
"""Return the stack trace of the bot as a string"""
result = ""
result += "\n*** STACKTRACE - START ***\n"