mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: better logs/ output to parse
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user