This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-4.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push: new fc1e2cb42dd CAMEL-21550: start the extender before visibility fc1e2cb42dd is described below commit fc1e2cb42dde61d08f3b451ec9e89a93a2354354 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Dec 18 11:36:46 2024 +0100 CAMEL-21550: start the extender before visibility --- .../org/apache/camel/component/aws2/sqs/Sqs2Consumer.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java index 019f1dd51e9..61667edb40b 100644 --- a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java +++ b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java @@ -437,14 +437,15 @@ public class Sqs2Consumer extends ScheduledBatchPollingConsumer { .build(); try { - LOG.trace("Extending visibility window by {} seconds for request entries {}", repeatSeconds, + LOG.trace("Extending visibility window by {} seconds for request entries: {}", repeatSeconds, batchEntries); ChangeMessageVisibilityBatchResponse br = getEndpoint().getClient().changeMessageVisibilityBatch(request); - LOG.debug("Extended visibility window for request entries successful {}", br.successful()); - LOG.debug("Extended visibility window for request entries failed {}", br.failed()); - } catch (SqsException e) { - logException(e, batchEntries); + if (br.hasFailed()) { + LOG.warn("Extended visibility window for request entries failed: {}", br.failed()); + } else { + LOG.debug("Extended visibility window for request entries successful: {}", br.successful()); + } } catch (SdkException e) { logException(e, batchEntries); }