From issues-return-92347-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Tue Feb 18 20:31:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5FE4518060E for ; Tue, 18 Feb 2020 21:31:03 +0100 (CET) Received: (qmail 47182 invoked by uid 500); 18 Feb 2020 20:31:02 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 47171 invoked by uid 99); 18 Feb 2020 20:31:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2020 20:31:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AFF5AE30CB for ; Tue, 18 Feb 2020 20:31:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 5758F7804AA for ; Tue, 18 Feb 2020 20:31:00 +0000 (UTC) Date: Tue, 18 Feb 2020 20:31:00 +0000 (UTC) From: "ASF subversion and git services (Jira)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-6064) MockComponentLog misplaces reported exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-6064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039435#comment-17039435 ] ASF subversion and git services commented on NIFI-6064: ------------------------------------------------------- Commit fe416d1ea0e1b7f15c1fdf8884d10f280d126f4e in nifi's branch refs/heads/master from karthik-kadajji [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fe416d1 ] NIFI-6064 MockComponentLog misplaces reported exceptions Signed-off-by: Pierre Villard This closes #4061. > MockComponentLog misplaces reported exceptions > ---------------------------------------------- > > Key: NIFI-6064 > URL: https://issues.apache.org/jira/browse/NIFI-6064 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.8.0, 1.9.0 > Reporter: Sergei Zhirikov > Assignee: karthik kadajji > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > When MockComponentLog.error(String, Throwable) is called, the message is forwarded to CapturingLogger.error(String, Object, Object), which treats the Throwable passed as the last parameter as a regular message parameter and passes it as such to the LogMessage constructor. As the result, the Throwable ends up as the last element in LogMessage.args, instead of the LogMessage.throwable field, where it would be more appropriate. > Note: I have only tested this with 1.8.0, but the relevant code in the master branch is the same, so I assume the issue applies to the latest version as well. -- This message was sent by Atlassian Jira (v8.3.4#803005)