[core] use string formatting to print command info

This commit is contained in:
Yann Lanthony 2018-02-26 12:23:08 +01:00
parent 3ff3308700
commit 9522ea7092

View file

@ -378,8 +378,8 @@ class CommandLineNode(Node):
cmd = self.buildCommandLine(chunk)
chunk.status.commandLine = cmd
chunk.saveStatusFile()
print(' - commandLine:', cmd)
print(' - logFile:', chunk.logFile)
print(' - commandLine: {}'.format(cmd))
print(' - logFile: {}'.format(chunk.logFile))
chunk.subprocess = psutil.Popen(cmd, stdout=logF, stderr=logF, shell=True)
# store process static info into the status file