Repository: camel Updated Branches: refs/heads/master 8246b8ccf -> 46fc05aca
Polished Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/46fc05ac Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/46fc05ac Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/46fc05ac Branch: refs/heads/master Commit: 46fc05aca560c0d4a715d26edfdb14ba2418a3de Parents: 8246b8c Author: Claus Ibsen <[email protected]> Authored: Wed Sep 30 10:48:40 2015 +0200 Committer: Claus Ibsen <[email protected]> Committed: Wed Sep 30 10:48:40 2015 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/main/MainSupport.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/46fc05ac/camel-core/src/main/java/org/apache/camel/main/MainSupport.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/main/MainSupport.java b/camel-core/src/main/java/org/apache/camel/main/MainSupport.java index 69d4589..ab403d9 100644 --- a/camel-core/src/main/java/org/apache/camel/main/MainSupport.java +++ b/camel-core/src/main/java/org/apache/camel/main/MainSupport.java @@ -314,13 +314,18 @@ public abstract class MainSupport extends ServiceSupport { } protected void doStop() throws Exception { - LOG.info("Apache Camel " + getVersion() + " stopping"); + if (!isStopped()) { + LOG.info("Apache Camel " + getVersion() + " stopping"); + } // call completed to properly stop as we count down the waiting latch completed(); } protected void doStart() throws Exception { - LOG.info("Apache Camel " + getVersion() + " starting"); + if (!isStarted()) { + // only log if we are not already started as camel-spring-boot etc. has a different start ordering + LOG.info("Apache Camel " + getVersion() + " starting"); + } } protected void waitUntilCompleted() {
