You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/11/10 17:21:16 UTC

[camel] branch main updated: CAMEL-17221 - Use Debug log level for Foreground Task

This is an automated email from the ASF dual-hosted git repository.

acosentino 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 59edfdd  CAMEL-17221 - Use Debug log level for Foreground Task
59edfdd is described below

commit 59edfdd36d774942612e200ecb8220ee91e02714
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 10 18:20:10 2021 +0100

    CAMEL-17221 - Use Debug log level for Foreground Task
---
 .../java/org/apache/camel/support/task/ForegroundTask.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/task/ForegroundTask.java b/core/camel-support/src/main/java/org/apache/camel/support/task/ForegroundTask.java
index d2ac9dc..d5f798f 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/task/ForegroundTask.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/task/ForegroundTask.java
@@ -75,7 +75,7 @@ public class ForegroundTask implements BlockingTask {
 
             while (budget.next()) {
                 if (predicate.test(payload)) {
-                    LOG.info("Task {} is complete after {} iterations and it is ready to continue",
+                    LOG.debug("Task {} is complete after {} iterations and it is ready to continue",
                             name, budget.iteration());
                     completed = true;
                     break;
@@ -86,7 +86,7 @@ public class ForegroundTask implements BlockingTask {
                 }
             }
         } catch (InterruptedException e) {
-            LOG.warn("Interrupted {} while waiting for the repeatable task to execute", name);
+            LOG.warn("Interrupted {} while waiting for the repeatable task to finish", name);
             Thread.currentThread().interrupt();
         }
 
@@ -104,7 +104,7 @@ public class ForegroundTask implements BlockingTask {
 
             while (budget.next()) {
                 if (supplier.getAsBoolean()) {
-                    LOG.info("Task {} is complete after {} iterations and it is ready to continue",
+                    LOG.debug("Task {} is complete after {} iterations and it is ready to continue",
                             name, budget.iteration());
                     completed = true;
 
@@ -116,7 +116,7 @@ public class ForegroundTask implements BlockingTask {
                 }
             }
         } catch (InterruptedException e) {
-            LOG.warn("Interrupted {} while waiting for the repeatable task to execute", name);
+            LOG.warn("Interrupted {} while waiting for the repeatable task to finish", name);
             Thread.currentThread().interrupt();
         }
 
@@ -140,7 +140,7 @@ public class ForegroundTask implements BlockingTask {
             while (budget.next()) {
                 T ret = supplier.get();
                 if (predicate.test(ret)) {
-                    LOG.info("Task {} is complete after {} iterations and it is ready to continue",
+                    LOG.debug("Task {} is complete after {} iterations and it is ready to continue",
                             name, budget.iteration());
                     return Optional.ofNullable(ret);
                 }
@@ -150,7 +150,7 @@ public class ForegroundTask implements BlockingTask {
                 }
             }
         } catch (InterruptedException e) {
-            LOG.warn("Interrupted {} while waiting for the repeatable task to execute", name);
+            LOG.warn("Interrupted {} while waiting for the repeatable task to finish", name);
             Thread.currentThread().interrupt();
         }