You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/08/05 19:01:33 UTC
[camel] branch main updated: camel-jbang - Fix trace compact=false
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 c105bbdb831 camel-jbang - Fix trace compact=false
c105bbdb831 is described below
commit c105bbdb831365dd5bdbe07eb6a57478da1e43b4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Aug 5 21:01:20 2023 +0200
camel-jbang - Fix trace compact=false
---
.../camel/dsl/jbang/core/commands/action/CamelTraceAction.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
index e9269b91ca5..dfb03d4c577 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
@@ -688,7 +688,12 @@ public class CamelTraceAction extends ActionBaseCommand {
System.out.println(line);
}
if (!compact) {
- System.out.println(nameWithPrefix);
+ if (nameWithPrefix != null) {
+ System.out.println(nameWithPrefix);
+ } else {
+ // empty line
+ System.out.println();
+ }
}
}