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 98d75757a3248e589e5acfda5be1a53188758e45
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Mar 15 09:21:54 2021 +0100

    Polished camel-main waiting message
---
 .../src/main/java/org/apache/camel/main/MainSupport.java          | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java 
b/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
index ee4618e..d49d760 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
@@ -293,17 +293,17 @@ public abstract class MainSupport extends BaseMainSupport 
{
                 long sec = durationMaxSeconds;
                 int exit = durationHitExitCode;
                 if (sec > 0) {
-                    LOG.info("Waiting for: {} seconds", sec);
+                    LOG.info("Waiting until complete: Duration max {} 
seconds", sec);
                     shutdownStrategy.await(sec, TimeUnit.SECONDS);
                     exitCode.compareAndSet(UNINITIALIZED_EXIT_CODE, exit);
                     shutdownStrategy.shutdown();
                 } else if (idle > 0 || max > 0) {
                     if (idle > 0 && max > 0) {
-                        LOG.info("Waiting to be idle for: {} seconds or until: 
{} messages has been processed", idle, max);
+                        LOG.info("Waiting until complete: Duration idle {} 
seconds or max {} messages processed", idle, max);
                     } else if (idle > 0) {
-                        LOG.info("Waiting to be idle for: {} seconds", idle);
+                        LOG.info("Waiting until complete: Duration idle {} 
seconds", idle);
                     } else {
-                        LOG.info("Waiting until: {} messages has been 
processed", max);
+                        LOG.info("Waiting until complete: Duration max {} 
messages processed", max);
                     }
                     exitCode.compareAndSet(UNINITIALIZED_EXIT_CODE, exit);
                     shutdownStrategy.await();

Reply via email to