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