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 d1118ecfb7c Polished
d1118ecfb7c is described below
commit d1118ecfb7c2fe8f54377007610a7844b7f300e1
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 29 13:51:50 2022 +0200
Polished
---
.../main/java/org/apache/camel/impl/engine/AbstractCamelContext.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 fad944e4d38..ebbdb77e7aa 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
@@ -3384,7 +3384,8 @@ public abstract class AbstractCamelContext extends
BaseService
if (startupSummaryLevel != StartupSummaryLevel.Oneline &&
startupSummaryLevel != StartupSummaryLevel.Off) {
if (shutdownStrategy != null && shutdownStrategy.getTimeUnit() !=
null) {
long timeout =
shutdownStrategy.getTimeUnit().toMillis(shutdownStrategy.getTimeout());
- String to = TimeUtils.printDuration(timeout, true);
+ // only use precise print duration if timeout is shorter than
10 seconds
+ String to = TimeUtils.printDuration(timeout, timeout < 10000);
LOG.info("Apache Camel {} ({}) shutting down (timeout:{})",
getVersion(), getName(), to);
} else {
LOG.info("Apache Camel {} ({}) shutting down", getVersion(),
getName());