Skip to content

Commit

Permalink
DCA11Y-1145: debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
flipatlas committed Sep 19, 2024
1 parent d1e182a commit 5a571d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public String execute(List<String> command) {

try {
int exitValue = executor.execute(logger, stdout, stderr);
logger.debug("Command result: ```{}```", parseOutput(stdout));
logger.debug("Command output: ```{}```", parseOutput(stdout));
if (exitValue != 0) {
logger.debug("Command error: ```{}```", parseOutput(stderr));
logger.debug("Command finished with error exit code {}, error output ```{}```", exitValue, parseOutput(stderr));
}
} catch (ProcessExecutionException e) {
logger.debug("Command error: ```{}```", parseOutput(stderr));
logger.debug("Command threw unexpectedly, error output: ```{}```", parseOutput(stderr));
}

return parseOutput(stdout);
Expand Down

0 comments on commit 5a571d4

Please sign in to comment.