Skip to content

Commit

Permalink
More logging in CLIUtils for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rjanik114 authored and mnovak1 committed Sep 4, 2024
1 parent 2ae4d79 commit f262f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/cz/xtf/core/openshift/CLIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public static String executeCommand(Map<String, String> environmentVariables, St
return commandOutput;
} else {
log.error("Failed while executing (code {}): {}", result, String.join(" ", args));
log.error(err.get());
log.error("stdout:\n{}", out.get());
log.error("stderr:\n{}", err.get());
}
} catch (IOException | InterruptedException | ExecutionException e) {
log.error("Failed while executing: " + String.join(" ", args), e);
Expand Down

0 comments on commit f262f2a

Please sign in to comment.