shell_command: Fix logging
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
29e7df38d0
commit
1baa85d109
@ -74,10 +74,10 @@ class ShellCommand:
|
|||||||
self.output_cb(self.partial_output)
|
self.output_cb(self.partial_output)
|
||||||
self.partial_output = b""
|
self.partial_output = b""
|
||||||
if complete:
|
if complete:
|
||||||
msg = "Command {%s} finished\n" % (self.name)
|
msg = "Command {%s} finished" % (self.name)
|
||||||
else:
|
else:
|
||||||
msg = "Command {%s} timed out" % (self.name)
|
msg = "Command {%s} timed out" % (self.name)
|
||||||
logging.info("shell_command: " + msg)
|
logging.info(msg)
|
||||||
self.io_loop.remove_handler(fd)
|
self.io_loop.remove_handler(fd)
|
||||||
|
|
||||||
class ShellCommandFactory:
|
class ShellCommandFactory:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user