Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: processing of the quiet parameter on CLI #392

Merged
merged 1 commit into from
Feb 20, 2020
Merged

fix: processing of the quiet parameter on CLI #392

merged 1 commit into from
Feb 20, 2020

Conversation

jcharlet
Copy link
Contributor

Issue

fix #387
according to the documentation, when set, the quiet parameter should override the consoleLogThreshold JVM parameter, and define the TNA logger to ERROR.
It was not taken into account because the processing of the JVM params happen after the spring context (including log4j) was initialized.

Solution

manual process at the very start of the CLI app: check for --quiet or -q parameter in app arguments, and set the env variable accordingly

Acceptance tests

run the CLI in quiet mode, only csv results and errors should appear

-R -Nr /boot/grub -Ns /home/jeremie/.droid6/signature_files/DROID_SignatureFile_V96.xml -Nc /home/jeremie/.droid6/container_sigs/container-signature-20200121.xml --quiet

@jcharlet jcharlet added the bug label Feb 20, 2020
@jcharlet jcharlet added this to the 6.5 milestone Feb 20, 2020
@jcharlet jcharlet self-assigned this Feb 20, 2020
@jcharlet jcharlet added this to In progress in DROID Kanban board 6.5 via automation Feb 20, 2020
DROID Kanban board 6.5 automation moved this from In progress to Reviewer approved Feb 20, 2020
@jcharlet jcharlet merged commit 9068033 into master Feb 20, 2020
DROID Kanban board 6.5 automation moved this from Reviewer approved to Done Feb 20, 2020
@jcharlet jcharlet deleted the f_logger branch February 20, 2020 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

--quiet option in CLI does not work fully as expected
2 participants