This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 181e84ce7f519774d73ffb23eeab5f14ace3e2eb Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun May 31 14:43:41 2020 +0200 Polished --- .../apache/camel/impl/engine/AbstractCamelContext.java | 18 +++++++++--------- .../camel/impl/lw/LightweightRuntimeCamelContext.java | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java index 04a3c0a..14f968f 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java @@ -2338,7 +2338,7 @@ public abstract class AbstractCamelContext extends BaseService protected void doSuspend() throws Exception { EventHelper.notifyCamelContextSuspending(this); - LOG.info("Apache Camel {} (CamelContext: {}) is suspending", getVersion(), getName()); + LOG.info("Apache Camel {} ({}) is suspending", getVersion(), getName()); StopWatch watch = new StopWatch(); // update list of started routes to be suspended @@ -2379,7 +2379,7 @@ public abstract class AbstractCamelContext extends BaseService watch.taken(); if (LOG.isInfoEnabled()) { - LOG.info("Apache Camel {} (CamelContext: {}) is suspended in {}", getVersion(), getName(), TimeUtils.printDuration(watch.taken())); + LOG.info("Apache Camel {} ({}) is suspended in {}", getVersion(), getName(), TimeUtils.printDuration(watch.taken())); } EventHelper.notifyCamelContextSuspended(this); @@ -2390,7 +2390,7 @@ public abstract class AbstractCamelContext extends BaseService try { EventHelper.notifyCamelContextResuming(this); - LOG.info("Apache Camel {} (CamelContext: {}) is resuming", getVersion(), getName()); + LOG.info("Apache Camel {} ({}) is resuming", getVersion(), getName()); StopWatch watch = new StopWatch(); // start the suspended routes (do not check for route clashes, and @@ -2409,7 +2409,7 @@ public abstract class AbstractCamelContext extends BaseService if (LOG.isInfoEnabled()) { LOG.info("Resumed {} routes", suspendedRouteServices.size()); - LOG.info("Apache Camel {} (CamelContext: {}) resumed in {}", getVersion(), getName(), TimeUtils.printDuration(watch.taken())); + LOG.info("Apache Camel {} ({}) resumed in {}", getVersion(), getName(), TimeUtils.printDuration(watch.taken())); } // and clear the list as they have been resumed @@ -2625,7 +2625,7 @@ public abstract class AbstractCamelContext extends BaseService } protected void doStartContext() throws Exception { - LOG.info("Apache Camel {} (CamelContext: {}) is starting", getVersion(), getName()); + LOG.info("Apache Camel {} ({}) is starting", getVersion(), getName()); vetoed = null; startDate = new Date(); stopWatch.restart(); @@ -2682,7 +2682,7 @@ public abstract class AbstractCamelContext extends BaseService LOG.info("Total {} routes, of which {} are started, and {} are managed by RouteController: {}", getRoutes().size(), started, controlledRoutes.size(), getRouteController().getClass().getName()); } - LOG.info("Apache Camel {} (CamelContext: {}) started in {}", getVersion(), getName(), TimeUtils.printDuration(stopWatch.taken())); + LOG.info("Apache Camel {} ({}) started in {}", getVersion(), getName(), TimeUtils.printDuration(stopWatch.taken())); } } @@ -2823,7 +2823,7 @@ public abstract class AbstractCamelContext extends BaseService @Override protected void doStop() throws Exception { stopWatch.restart(); - LOG.info("Apache Camel {} (CamelContext: {}) is shutting down", getVersion(), getName()); + LOG.info("Apache Camel {} ({}) is shutting down", getVersion(), getName()); EventHelper.notifyCamelContextStopping(this); EventHelper.notifyCamelContextRoutesStopping(this); @@ -2941,8 +2941,8 @@ public abstract class AbstractCamelContext extends BaseService forceStopLazyInitialization(); if (LOG.isInfoEnabled()) { - LOG.info("Apache Camel " + getVersion() + " (CamelContext: " + getName() + ") uptime {}", getUptime()); - LOG.info("Apache Camel {} (CamelContext: {}) is shutdown in {}", getVersion(), getName(), TimeUtils.printDuration(stopWatch.taken())); + LOG.info("Apache Camel {} ({}) uptime {}", getVersion(), getName(), getUptime()); + LOG.info("Apache Camel {} ({}) is shutdown in {}", getVersion(), getName(), TimeUtils.printDuration(stopWatch.taken())); } // and clear start date diff --git a/core/camel-core-engine/src/main/java/org/apache/camel/impl/lw/LightweightRuntimeCamelContext.java b/core/camel-core-engine/src/main/java/org/apache/camel/impl/lw/LightweightRuntimeCamelContext.java index 2001fc8..ecd663c 100644 --- a/core/camel-core-engine/src/main/java/org/apache/camel/impl/lw/LightweightRuntimeCamelContext.java +++ b/core/camel-core-engine/src/main/java/org/apache/camel/impl/lw/LightweightRuntimeCamelContext.java @@ -292,13 +292,13 @@ public class LightweightRuntimeCamelContext implements ExtendedCamelContext, Cat @Override public void start() { startDate = new Date(); - LOG.info("Apache Camel {} (CamelContext: {}) is starting", getVersion(), getName()); + LOG.info("Apache Camel {} ({}) is starting", getVersion(), getName()); for (Route route : routes) { route.getConsumer().start(); } if (LOG.isInfoEnabled()) { long l = System.currentTimeMillis() - startDate.getTime(); - LOG.info("Apache Camel {} (CamelContext: {}) {} routes started in {}", + LOG.info("Apache Camel {} ({}) {} routes started in {}", getVersion(), getName(), routes.size(), TimeUtils.printDuration(l)); } }