Polished warning
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2a27d326 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2a27d326 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2a27d326 Branch: refs/heads/camel-2.14.x Commit: 2a27d326beee7aa16441eadf67ac0fe33f27cba1 Parents: 16f8408 Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Oct 1 09:47:13 2014 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Oct 1 11:18:30 2014 +0200 ---------------------------------------------------------------------- .../java/org/apache/camel/impl/DefaultShutdownStrategy.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/2a27d326/camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java index d82a5bd..def82f7 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java +++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java @@ -194,11 +194,13 @@ public class DefaultShutdownStrategy extends ServiceSupport implements ShutdownS // if set, stop processing and return false to indicate that the shutdown is aborting if (!forceShutdown && abortAfterTimeout) { - LOG.warn("Timeout occurred. Aborting the shutdown now. Some resources may still be running."); + LOG.warn("Timeout occurred during graceful shutdown. Aborting the shutdown now." + + " Notice: some resources may still be running as graceful shutdown did not complete successfully."); return false; } else { if (forceShutdown || shutdownNowOnTimeout) { - LOG.warn("Timeout occurred. Forcing the routes to be shutdown now. Some resources may still be running."); + LOG.warn("Timeout occurred during graceful shutdown. Forcing the routes to be shutdown now." + + " Notice: some resources may still be running as graceful shutdown did not complete successfully."); // force the routes to shutdown now shutdownRoutesNow(routesOrdered); @@ -209,7 +211,8 @@ public class DefaultShutdownStrategy extends ServiceSupport implements ShutdownS } } } else { - LOG.warn("Timeout occurred. Will ignore shutting down the remainder routes. Some resources may still be running."); + LOG.warn("Timeout occurred during graceful shutdown. Will ignore shutting down the remainder routes." + + " Notice: some resources may still be running as graceful shutdown did not complete successfully."); } } } finally {