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 1efafcbdaa0 CAMEL-18118: camel-jbang - Linux terminal scripting using 
pipes
1efafcbdaa0 is described below

commit 1efafcbdaa0742b15c218310274600a3393eab2e
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue May 17 20:23:00 2022 +0200

    CAMEL-18118: camel-jbang - Linux terminal scripting using pipes
---
 docs/user-manual/modules/ROOT/pages/camel-jbang.adoc                | 6 +++---
 .../main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 4472e603526..16218e4d32e 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -329,12 +329,12 @@ HELLO
 WORLD
 ----
 
-Camel stores logs to file in the `.camel-jbang/camel-pipe.log` file. You can 
turn this off by
-setting `--logging=false` such as:
+Logging can be turned on using `--logging=true` which then logs to 
`.camel-jbang/camel-pipe.log` file.
+The name of the logging file cannot be configured.
 
 [source,bash]
 ----
-echo "Hello\nWorld" | ./upper.yaml --logging=false
+echo "Hello\nWorld" | ./upper.yaml --logging=true
 ----
 
 NOTE: Every time the script is executed a JVM is started with Camel. This is 
not very fast or low on memory usage,
diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
index f9f9114458e..b6910a8f7ca 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
@@ -42,8 +42,8 @@ class Pipe implements Callable<Integer> {
                         description = "For how long time in seconds Camel can 
be idle before stopping")
     int maxIdleSeconds;
 
-    @CommandLine.Option(names = { "--logging" }, defaultValue = "true", 
description = "Can be used to turn off logging")
-    boolean logging = true;
+    @CommandLine.Option(names = { "--logging" }, defaultValue = "false", 
description = "Can be used to turn on logging (logs to file in .camel-jbang 
directory)")
+    boolean logging;
 
     @CommandLine.Option(names = { "--logging-level" }, defaultValue = "info", 
description = "Logging level")
     String loggingLevel;

Reply via email to