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 eab9a0ca3b62 chore: camel-rss - do not log a WARN when the feed cannot 
be cloned (#28983)
eab9a0ca3b62 is described below

commit eab9a0ca3b62797d1116e4986afe230e9b883dc1
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 2 21:57:47 2026 +0100

    chore: camel-rss - do not log a WARN when the feed cannot be cloned (#28983)
    
    Since CAMEL-26132 a feed that cannot be cloned fails the exchange with the
    entry as the body, so the error handler logs it (or a dead letter channel
    takes it). The extra WARN from the endpoint logged the same failure twice.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../src/main/java/org/apache/camel/component/rss/RssEndpoint.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
 
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
index f3f90398e850..9d6ad0de5685 100644
--- 
a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
+++ 
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
@@ -87,8 +87,8 @@ public class RssEndpoint extends FeedEndpoint implements 
EndpointServiceLocation
             newFeed.setEntries(Arrays.asList((SyndEntry) entry));
             exchange.getIn().setBody(newFeed);
         } catch (CloneNotSupportedException e) {
-            // keep the entry as the body so the error handler (such as a dead 
letter channel) does not lose it
-            LOG.warn("Could not clone the feed to hold the entry. The exchange 
is failed with the entry as its body.", e);
+            // keep the entry as the body so the error handler (such as a dead 
letter channel) does not lose it,
+            // and let the error handler log the failure
             exchange.getIn().setBody(entry);
             exchange.setException(new RuntimeCamelException("Could not clone 
the feed to hold the entry", e));
         }

Reply via email to