Skip to content

Commit

Permalink
Merge pull request #12 from actlaboratory/cat/log
Browse files Browse the repository at this point in the history
Resolves #5 カット編集の時に複数のログファイルができるはずが全部上書きされてしまっていたのを修正
  • Loading branch information
yncat authored Jan 6, 2024
2 parents 3257670 + 0219ca3 commit 58e61af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adapter/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def prepareCmdRunner(identifier, cmd, timestamp, onFinished = None, osOperation
timestamp,
osOperation
)
# Touch the log file here. Without this, the same log file path will be used for all runners since tasks are not executed in this preparation step.
f = osOperation.open(logFilePath, "w")
f.close()
runner = CmdRunner(identifier, cmd, logFilePath, onFinished, osOperation)
return runner

Expand Down

0 comments on commit 58e61af

Please sign in to comment.