[
https://issues.apache.org/jira/browse/NIFI-15139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-15139.
-----------------------------------
Fix Version/s: 2.7.0
Assignee: David Handermann (was: Zoltán Kornél Török)
Resolution: Fixed
> Nifi diagnostic command is not save output to a file, if verbose option is
> also used
> ------------------------------------------------------------------------------------
>
> Key: NIFI-15139
> URL: https://issues.apache.org/jira/browse/NIFI-15139
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Zoltán Kornél Török
> Assignee: David Handermann
> Priority: Minor
> Fix For: 2.7.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> When I wanted to use nifi diagnostics output, it turned out that the
> functionality is broken. It seems if I define the --verbose argument and a
> file name then the command output will be put into the default
> nifi-bootstrap.log.
> For example:
> {code:java}
> nifi.sh diagnostics --verbose /tmp/test
> {code}
> or
> {code:java}
> nifi.sh diagnostics /tmp/test --verbose {code}
> Don't save to the file, if --verbose is used. As it turned out there is a
> part in the code which assumes that the arguments are always two -
> [https://github.com/apache/nifi/blob/main/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/command/StandardBootstrapCommandProvider.java#L155]
>
> However that will not work, if I define --verbose as well. My fix first will
> be filter out --verbose, and after will check that is there a filename or not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)