clan-cli: improve debug logging

This commit is contained in:
DavHau
2023-10-05 17:33:38 +02:00
parent 8856758dbc
commit f885c877bc
4 changed files with 6 additions and 10 deletions

View File

@@ -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: