task_manager: log stdout/stderr correctly for processes
This commit is contained in:
parent
d156218775
commit
d0c1eddf79
@ -49,10 +49,11 @@ class Command:
|
||||
for fd in rlist:
|
||||
try:
|
||||
for line in fd:
|
||||
self.log.debug("stdout: %s", line)
|
||||
if fd == self.p.stderr:
|
||||
self.log.debug(f"[{cmd[0]}] stderr: {line}")
|
||||
self.stderr.append(line)
|
||||
else:
|
||||
self.log.debug(f"[{cmd[0]}] stdout: {line}")
|
||||
self.stdout.append(line)
|
||||
self._output.put(line)
|
||||
except BlockingIOError:
|
||||
|
Loading…
Reference in New Issue
Block a user