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
The following commit(s) were added to refs/heads/master by this push: new 9b489fd camel-core - Optimize a bit 9b489fd is described below commit 9b489fd3a8e32c442603bd35088eab2ddf0c9147 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Apr 6 12:39:41 2021 +0200 camel-core - Optimize a bit --- .../src/main/java/org/apache/camel/processor/PollEnricher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java index e9ea51e..c9125d1 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java @@ -279,7 +279,9 @@ public class PollEnricher extends AsyncProcessorSupport implements IdAware, Rout LOG.debug("Consumer receiveNoWait: {}", consumer); resourceExchange = consumer.receiveNoWait(); } else { - LOG.debug("Consumer receive with timeout: {} ms. {}", timeout, consumer); + if (LOG.isDebugEnabled()) { + LOG.debug("Consumer receive with timeout: {} ms. {}", timeout, consumer); + } resourceExchange = consumer.receive(timeout); }