test
This commit is contained in:
parent
66ee28229f
commit
9e6ae6179a
@ -23,7 +23,7 @@ def loggit(logtext):
|
|||||||
log_file = os.path.join(SCRIPT_DIR, "testlog.log")
|
log_file = os.path.join(SCRIPT_DIR, "testlog.log")
|
||||||
with open(log_file, 'a') as logwrite:
|
with open(log_file, 'a') as logwrite:
|
||||||
logwrite.write(logtext)
|
logwrite.write(logtext)
|
||||||
if script_settings["logging"]["output"]:
|
if script_settings["logging"]["output_level"]:
|
||||||
sys.stderr.write(logtext)
|
sys.stderr.write(logtext)
|
||||||
else:
|
else:
|
||||||
sys.stdout.write(logtext)
|
sys.stdout.write(logtext)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user