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 <[email protected]>
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()));