Restore original trace method, move full stack trace to another method
This commit is contained in:
parent
55192d4928
commit
bcdfc87a1b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue