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 fff631e846cd camel-jbang - Add run --backlog-trace option
fff631e846cd is described below
commit fff631e846cd3d82c80dae7b7ec237f80620a74e
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 25 16:11:03 2025 +0100
camel-jbang - Add run --backlog-trace option
---
.../main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 7 +++++++
1 file changed, 7 insertions(+)
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 351680d2a1d2..dcde4ffc5ae8 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
@@ -267,6 +267,10 @@ public class Run extends CamelCommand {
description = "Enables trace logging of the routed messages")
boolean trace;
+ @Option(names = { "--backlog-trace" }, defaultValue = "false",
+ description = "Enables backlog tracing of the routed messages")
+ boolean backlogTrace;
+
@Option(names = { "--properties" },
description = "comma separated list of properties file" +
" (ex.
/path/to/file.properties,/path/to/other.properties")
@@ -619,6 +623,9 @@ public class Run extends CamelCommand {
if (trace) {
writeSetting(main, profileProperties, "camel.main.tracing",
"true");
}
+ if (backlogTrace) {
+ writeSetting(main, profileProperties, "camel.trace.enabled",
"true");
+ }
if (modeline) {
writeSetting(main, profileProperties, "camel.main.modeline",
"true");
// configure eager