This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 9ace9739779 CAMEL-18067: camel-jbang - Add option to use json logging 
when running.
9ace9739779 is described below

commit 9ace9739779396655d4e3d8f64a0a950d21901aa
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon May 9 10:41:37 2022 +0200

    CAMEL-18067: camel-jbang - Add option to use json logging when running.
---
 .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
index c5b3b84763f..2561c234f77 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
@@ -594,14 +594,14 @@ class Run implements Callable<Integer> {
 
     private void configureLogging() {
         if (silentRun) {
-            RuntimeUtil.configureLog("off", false);
+            RuntimeUtil.configureLog("off", false, false);
         } else if (logging) {
-            RuntimeUtil.configureLog(loggingLevel, loggingColor);
+            RuntimeUtil.configureLog(loggingLevel, loggingColor, loggingJson);
             writeSettings("loggingLevel", loggingLevel);
             writeSettings("loggingColor", loggingColor ? "true" : "false");
             writeSettings("loggingJson", loggingJson ? "true" : "false");
         } else {
-            RuntimeUtil.configureLog("off", false);
+            RuntimeUtil.configureLog("off", false, false);
             writeSettings("loggingLevel", "off");
         }
     }

Reply via email to