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 c4fe25fb245 CAMEL-21144: Only enable backlog tracing in dev mode out 
of the box.
c4fe25fb245 is described below

commit c4fe25fb2458c6eaf244173fd566b07dae4d3a2a
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Aug 29 19:57:11 2024 +0200

    CAMEL-21144: Only enable backlog tracing in dev mode out of the box.
---
 .../src/main/java/org/apache/camel/main/ProfileConfigurer.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/ProfileConfigurer.java 
b/core/camel-main/src/main/java/org/apache/camel/main/ProfileConfigurer.java
index be369a19bd5..4bcca0d3717 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/ProfileConfigurer.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/ProfileConfigurer.java
@@ -43,8 +43,10 @@ public class ProfileConfigurer {
             return;
         }
 
-        // enable backlog tracing
-        config.tracerConfig().withEnabled(true);
+        if ("dev".equals(profile)) {
+            // enable backlog tracing
+            config.tracerConfig().withEnabled(true);
+        }
 
         configureCommon(camelContext, profile, config);
     }

Reply via email to