Don't need the debug_line function anymore. Gonna replace it. modified: listfix.py
Brian Barto bartobrian@gmail.com
Wed, 30 Mar 2022 15:24:01 -0400
1 files changed,
1 insertions(+),
26 deletions(-)
jump to
M
listfix.py
→
listfix.py
@@ -4,32 +4,7 @@ import sys
import os from listfix import Args, DB, Email, Errors -######################## -## Function Defs -######################## - -def debug_line(level, line): - - levels = { - 1 : "Error", - 2 : "Info", - 3 : "Debug", - 4 : "Trace" - } - - if (level not in levels.keys()): - return - - line = line.rstrip() - - if (level <= debug_level): - f = open("/tmp/listfix_log.txt", "a") - f.write(f"[{levels[level]}] {line}\n") - f.close() - -######################## -## Main Program -######################## +## Set up the exception handler er = Errors(debug=True) er.set_exception_handler()