diff --git a/src/conf.py b/src/conf.py index ebad5c973..9289bfefe 100644 --- a/src/conf.py +++ b/src/conf.py @@ -164,6 +164,13 @@ ignores = [] ### prefixChars = '@' +### +# detailedTracebacks: A boolean describing whether or not the bot will give +# *extremely* detailed tracebacks. Be cautioned, this eats +# a lot of log file space. +### +detailedTracebacks = True + ############################### ############################### ############################### diff --git a/src/debug.py b/src/debug.py index e868962c8..1c936dbd4 100644 --- a/src/debug.py +++ b/src/debug.py @@ -141,7 +141,8 @@ def recoverableException(): else: lastTimes.pop(0) try: - 1/0 + if not conf.detailedTracebacks: + 1/0 text = cgitb.text((E, e, tb)) except: text = ''.join(traceback.format_exception(E, e, tb))