Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10121

ResponseHandler in Mina2Producer should not log errors

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.4, 2.17.3, 2.18.0
    • Component/s: camel-mina2
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vandenbrink@zorgdomein.nl Gijsbert van den Brink
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: