clan-cli: improve debug logging
This commit is contained in:
@@ -51,10 +51,10 @@ class Command:
|
||||
try:
|
||||
for line in fd:
|
||||
if fd == self.p.stderr:
|
||||
self.log.debug(f"[{cmd[0]}] stderr: {line}")
|
||||
print(f"[{cmd[0]}] stderr: {line}")
|
||||
self.stderr.append(line)
|
||||
else:
|
||||
self.log.debug(f"[{cmd[0]}] stdout: {line}")
|
||||
print(f"[{cmd[0]}] stdout: {line}")
|
||||
self.stdout.append(line)
|
||||
self._output.put(line)
|
||||
except BlockingIOError:
|
||||
|
||||
Reference in New Issue
Block a user