Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A05C7200B35 for ; Tue, 5 Jul 2016 23:02:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9EEE8160A76; Tue, 5 Jul 2016 21:02:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 21736160A6F for ; Tue, 5 Jul 2016 23:02:11 +0200 (CEST) Received: (qmail 52907 invoked by uid 500); 5 Jul 2016 21:02:11 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 52851 invoked by uid 99); 5 Jul 2016 21:02:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 21:02:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 22F582C02AC for ; Tue, 5 Jul 2016 21:02:11 +0000 (UTC) Date: Tue, 5 Jul 2016 21:02:11 +0000 (UTC) From: "Gijsbert van den Brink (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-10121) ResponseHandler in Mina2Producer should not log errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 21:02:12 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gijsbert van den Brink updated CAMEL-10121: ------------------------------------------- Patch Info: Patch Available Summary: ResponseHandler in Mina2Producer should not log errors (was: ResponsHandler in Mina2Producer should not log errors) > 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 > > 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)