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

@ -278,7 +278,12 @@ class IRCCore(asynchat.async_chat):
return ob return ob
@staticmethod @staticmethod
def trace(): 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""" """Return the stack trace of the bot as a string"""
result = "" result = ""
result += "\n*** STACKTRACE - START ***\n" result += "\n*** STACKTRACE - START ***\n"