This commit is contained in:
deathbybandaid 2023-01-06 13:52:49 -05:00
parent 66ee28229f
commit 9e6ae6179a

View File

@ -23,7 +23,7 @@ def loggit(logtext):
log_file = os.path.join(SCRIPT_DIR, "testlog.log")
with open(log_file, 'a') as logwrite:
logwrite.write(logtext)
if script_settings["logging"]["output"]:
if script_settings["logging"]["output_level"]:
sys.stderr.write(logtext)
else:
sys.stdout.write(logtext)