You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2026/03/13 19:55:00 UTC

[jira] [Updated] (NIFI-15715) CapturingLogger not capturing Throwable in those log methods whose signature is (String format, Object... arguments)

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

Daniel Stieglitz updated NIFI-15715:
------------------------------------
    Description: 
As discussed in the following Slack [https://apachenifi.slack.com/archives/C0L9S92JY/p1773177616276779]  it was discovered that CapturingLogger does not capture the Throwable in those log methods whose signature is (String format, Object... arguments) in order to populate a LogMessage object. This prevents unit tests for checking stack traces.

Included in this ticket are unit tests which exercise using parameters in the TransformXml which need the fix for CapturingLogger in order to assert failures from stack traces.

  was:
As discussed in the following Slack [thread|[https://apachenifi.slack.com/archives/C0L9S92JY/p1773177616276779|https://apachenifi.slack.com/archives/C0L9S92JY/p1773177616276779],]]   it was discovered that CapturingLogger does not capture the Throwable in those log methods whose signature is (String format, Object... arguments) in order to populate a LogMessage object. This prevents unit tests for checking stack traces.

Included in this ticket are unit tests which exercise using parameters in the TransformXml which need the fix for CapturingLogger in order to assert failures from stack traces.


> CapturingLogger not capturing Throwable in those log methods whose signature is (String format, Object... arguments)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15715
>                 URL: https://issues.apache.org/jira/browse/NIFI-15715
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As discussed in the following Slack [https://apachenifi.slack.com/archives/C0L9S92JY/p1773177616276779]  it was discovered that CapturingLogger does not capture the Throwable in those log methods whose signature is (String format, Object... arguments) in order to populate a LogMessage object. This prevents unit tests for checking stack traces.
> Included in this ticket are unit tests which exercise using parameters in the TransformXml which need the fix for CapturingLogger in order to assert failures from stack traces.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)