Skip to content
Snippets Groups Projects
Commit 76bba948 authored by Georg Seibt's avatar Georg Seibt :nerd:
Browse files

log command output on finest, log whether they returned output on fine

parent a8e593d4
No related branches found
No related tags found
No related merge requests found
......@@ -94,13 +94,15 @@ public class ProcessExecutor {
if (res.stdOut.isEmpty()) {
LOG.fine(() -> String.format("Execution of '%s' returned no standard output.", cmd));
} else {
LOG.finest(() -> String.format("Execution of '%s' returned standard output:%n%s", cmd, res.stdOut));
LOG.fine(() -> String.format("Execution of '%s' returned standard output.", cmd));
LOG.finest(() -> String.format("Standard output of '%s' was:%n%s", cmd, res.stdOut));
}
if (res.stdErr.isEmpty()) {
LOG.fine(() -> String.format("Execution of '%s' returned no standard error output.", cmd));
} else {
LOG.finest(() -> String.format("Execution of '%s' returned standard error output:%n%s", cmd, res.stdErr));
LOG.fine(() -> String.format("Execution of '%s' returned standard error output.", cmd));
LOG.finest(() -> String.format("Standard output of '%s' was:%n%s", cmd, res.stdErr));
}
return Optional.of(res);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment