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 b23d726e6cb Less noisy on route start/stop summary
b23d726e6cb is described below
commit b23d726e6cbab8d704d29b46c929cb31e9c2351c
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 29 13:47:01 2022 +0200
Less noisy on route start/stop summary
---
.../java/org/apache/camel/impl/engine/AbstractCamelContext.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index fce466d32f7..fad944e4d38 100644
---
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -3161,8 +3161,10 @@ public abstract class AbstractCamelContext extends
BaseService
}
if (disabled > 0) {
LOG.info("Routes startup (total:{} started:{} disabled:{})",
total, started, disabled);
- } else {
+ } else if (total != started) {
LOG.info("Routes startup (total:{} started:{})", total,
started);
+ } else {
+ LOG.info("Routes startup (started:{})", started);
}
// if we are default/verbose then log each route line
if (startupSummaryLevel == StartupSummaryLevel.Default ||
startupSummaryLevel == StartupSummaryLevel.Verbose) {
@@ -3582,8 +3584,10 @@ public abstract class AbstractCamelContext extends
BaseService
}
if (forced > 0) {
logger.log(String.format("Routes stopped (total:%s stopped:%s
forced:%s)", total, stopped, forced));
- } else {
+ } else if (total != stopped) {
logger.log(String.format("Routes stopped (total:%s
stopped:%s)", total, stopped));
+ } else {
+ logger.log(String.format("Routes stopped (stopped:%s)",
stopped));
}
// if we are default/verbose then log each route line
if (startupSummaryLevel == StartupSummaryLevel.Default ||
startupSummaryLevel == StartupSummaryLevel.Verbose) {