all repos — listfix @ 1b6ec0f768fa479e580df76c187a910f2f966e92

Postfix Mailing List Software; Maintained on behalf the of Agency Economy Incorporated NFP.

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
commit

1b6ec0f768fa479e580df76c187a910f2f966e92

parent

f5b5593c12f2ae9276fbe3db1150903dff4f0d62

1 files changed, 1 insertions(+), 26 deletions(-)

jump to
M listfix.pylistfix.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()