You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also have a custom IDefaultValueProvider implementation that will load and decrypt an encrypted password from a file for the option.
It all works well, except when setting CommandLine.tracer().setLevel() to a high enough level. When I do that, the password is logged by picocli as below:
[picocli INFO] Setting field String ....password to 'ACTUAL_PASSWORD_VALUE' (was 'ACTUAL_PASSWORD_VALUE') for field String ....password on ...
It seems that the echo = false setting is ignored when it comes to default values. In the code I see that echo() is only checked based around certain other conditions.
Would it be possible to suppress all logging when echo is set to false, regardless of any other setting on the option?
The text was updated successfully, but these errors were encountered:
I have a field defined as
I also have a custom
IDefaultValueProvider
implementation that will load and decrypt an encrypted password from a file for the option.It all works well, except when setting
CommandLine.tracer().setLevel()
to a high enough level. When I do that, the password is logged by picocli as below:It seems that the
echo = false
setting is ignored when it comes to default values. In the code I see thatecho()
is only checked based around certain other conditions.Would it be possible to suppress all logging when echo is set to false, regardless of any other setting on the option?
The text was updated successfully, but these errors were encountered: