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 2022/05/06 09:17:09 UTC

[camel] branch main updated: CAMEL-18025: camel-jbang - Terminating running app with ctrl + c then has little to no logging output

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 396e7d1ab98 CAMEL-18025: camel-jbang - Terminating running app with ctrl + c then has little to no logging output
396e7d1ab98 is described below

commit 396e7d1ab987bc13271e0efc24d123b388b30e6f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri May 6 11:16:06 2022 +0200

    CAMEL-18025: camel-jbang - Terminating running app with ctrl + c then has little to no logging output
---
 .../main/java/org/apache/camel/main/DefaultMainShutdownStrategy.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-main/src/main/java/org/apache/camel/main/DefaultMainShutdownStrategy.java b/core/camel-main/src/main/java/org/apache/camel/main/DefaultMainShutdownStrategy.java
index 3257aaa4e10..632511a03d7 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/DefaultMainShutdownStrategy.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/DefaultMainShutdownStrategy.java
@@ -113,7 +113,7 @@ public class DefaultMainShutdownStrategy extends SimpleMainShutdownStrategy {
                         // ignore
                     }
                 }
-                boolean success = main.getCamelContext().isStopped();
+                boolean success = done || main.getCamelContext().isStopped();
                 if (!success) {
                     LOG.warn("CamelContext not yet shutdown completely after: {}. Forcing shutdown.",
                             TimeUtils.printDuration(watch.taken()));