Skip to content

Commit e889487

Browse files
committed
Temporarily log stdout and stderr
1 parent 79b1d55 commit e889487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/appdata/modules/API/MDNX/crunchy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def test(self) -> None:
7070
log_manager.info("Testing MDNX API...")
7171

7272
tmp_cmd = [self.mdnx_path, "--service", self.mdnx_service, "--srz", "G8DHV78ZM"]
73-
result = subprocess.run(tmp_cmd, capture_output=True, text=True, encoding="utf-8").stdout
74-
log_manager.info(f"MDNX API test result:\n{result}")
73+
result = subprocess.run(tmp_cmd, capture_output=True, text=True, encoding="utf-8")
74+
log_manager.info(f"MDNX API test result:\nout:{result.stdout}\nerr:{result.stderr}")
7575

76-
dict_result = self._process_console_output(result, add2queue=False)
76+
dict_result = self._process_console_output(result.stdout, add2queue=False)
7777
log_manager.info(f"Processed console output:\n{json.dumps(dict_result)}")
7878

7979
# check if the output contains authentication errors

0 commit comments

Comments
 (0)