You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Arno Noordover (JIRA)" <ji...@apache.org> on 2016/07/05 22:46:11 UTC

[jira] [Resolved] (CAMEL-10121) ResponseHandler in Mina2Producer should not log errors

     [ https://issues.apache.org/jira/browse/CAMEL-10121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arno Noordover resolved CAMEL-10121.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.18.0
                   2.17.3

> ResponseHandler in Mina2Producer should not log errors
> ------------------------------------------------------
>
>                 Key: CAMEL-10121
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10121
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mina2
>            Reporter: Gijsbert van den Brink
>            Priority: Minor
>             Fix For: 2.17.3, 2.18.0
>
>
> When an exception occurs in the ResponseHandler an error is logged AND the exception is then wrapped in a CamelExchangeException and re-thrown.
> So if I choose to handle certain exceptions in my route I still get an error in the logs.
> As long as Mina2Producer throws these exceptions there's no need to log an error (or anything actually) in my opinion. 
> Do you agree that the "LOG.error("Exception on receiving message from address ..." line can be removed?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)