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-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new a083fec6897 CAMEL-21149: Camel debugger suspend on start is not 
working with SpringBoot
a083fec6897 is described below

commit a083fec6897e5869fc4d69839073170e93d431cf
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Aug 30 16:49:17 2024 +0200

    CAMEL-21149: Camel debugger suspend on start is not working with SpringBoot
---
 .../apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/components-starter/camel-debug-starter/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
 
b/components-starter/camel-debug-starter/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
index 3cc332397ef..8713817af61 100644
--- 
a/components-starter/camel-debug-starter/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
+++ 
b/components-starter/camel-debug-starter/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
@@ -63,7 +63,9 @@ public class CamelDebugAutoConfiguration {
         
debugger.setIncludeExchangeVariables(config.isIncludeExchangeVariables());
         debugger.setIncludeException(config.isIncludeException());
         debugger.setLoggingLevel(config.getLoggingLevel().name());
-        debugger.setSuspendMode(config.isWaitForAttach());
+        if (config.isWaitForAttach()) {
+            debugger.setSuspendMode(config.isWaitForAttach());
+        }
         debugger.setFallbackTimeout(config.getFallbackTimeout());
 
         // enable jmx connector if port is set

Reply via email to