shell_command: Fix logging

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-07-14 07:15:38 -04:00
parent 29e7df38d0
commit 1baa85d109
1 changed files with 2 additions and 2 deletions

View File

@ -74,10 +74,10 @@ class ShellCommand:
self.output_cb(self.partial_output)
self.partial_output = b""
if complete:
msg = "Command {%s} finished\n" % (self.name)
msg = "Command {%s} finished" % (self.name)
else:
msg = "Command {%s} timed out" % (self.name)
logging.info("shell_command: " + msg)
logging.info(msg)
self.io_loop.remove_handler(fd)
class ShellCommandFactory: