Skip to content

Commit

Permalink
chore: Improve JBang command logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Nov 8, 2024
1 parent feb7f1f commit 940264f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ private static String getSystemPropertyArgs(Map<String, String> systemProperties
*/
private static ProcessAndOutput execute(List<String> command, Map<String, String> envVars) {
try {
LOG.info("Executing JBang command: %s".formatted(String.join(" ", command)));
if (LOG.isDebugEnabled()) {
LOG.debug("Executing JBang command: %s".formatted(String.join(" ", command)));
}

ProcessBuilder pBuilder = new ProcessBuilder(command)
.redirectErrorStream(true);
Expand Down

0 comments on commit 940264f

Please sign in to comment.