You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by kb...@apache.org on 2023/11/13 08:32:52 UTC
(incubator-kie-kogito-benchmarks) 25/38: Log command parameters explicitly
This is an automated email from the ASF dual-hosted git repository.
kbowers pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-benchmarks.git
commit e1fdafe669a6cc89a05aeef78adc8f2849d8a1f9
Author: Marián Macik <mm...@redhat.com>
AuthorDate: Fri Jul 30 20:17:42 2021 +0200
Log command parameters explicitly
---
.../src/main/java/org/kie/kogito/benchmarks/framework/Commands.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kogito-benchmarks-framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java b/kogito-benchmarks-framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
index da65087..8ed9c8c 100644
--- a/kogito-benchmarks-framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
+++ b/kogito-benchmarks-framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
@@ -324,7 +324,7 @@ public class Commands {
}
public static Process runCommand(List<String> command, File directory, File logFile) {
- logger.info("Running command: {}", String.join(" ", command));
+ logger.info("Running command: {}", command);
ProcessBuilder pa = new ProcessBuilder(command);
Map<String, String> envA = pa.environment();
envA.put("PATH", System.getenv("PATH"));
@@ -485,7 +485,7 @@ public class Commands {
pb.redirectOutput(ProcessBuilder.Redirect.to(log));
Process p = null;
try {
- logger.info("Running command: " + String.join(" ", command));
+ logger.info("Running command: {}", command);
p = pb.start();
} catch (IOException e) {
e.printStackTrace();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org