refactor: better logs/ output to parse

This commit is contained in:
Dobin
2024-02-17 14:19:32 +00:00
parent b4ec9031cb
commit c63e16ffab
6 changed files with 23 additions and 16 deletions
+2 -2
View File
@@ -39,9 +39,9 @@ def run_process_checkret(args, check=True):
ret = subprocess.run(args,
capture_output=True)
with open("logs/log.txt", "ab") as f:
with open("logs/cmdoutput.log", "ab") as f:
cmd = "------------------------------------\n"
cmd += "--- " + " ".join(args)
cmd += "--- " + " ".join(args) + "\n"
f.write(cmd.encode('utf-8'))
if ret.stdout != None:
f.write(ret.stdout)