-
Notifications
You must be signed in to change notification settings - Fork 413
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
Mask value of stacktrace does not work as expected #641
Comments
Hi Nils. Thanks for the report. I think your issue is related to #400, and the comment #400 (comment) in particular. The good news is I could reproduce your issue following your instructions with 6.6 but not with the current development version (7.0-SNAPSHOT) anymore. In the meantime I'm afraid your only option is to write a custom
and register it in your configuration as follows:
|
Ok, that solution is ok for me. Closing this issue and waiting for the 7.0 release 👍 |
@nilsmagnus 7.0 shouldn't be too long now... stay tuned ;-) |
Describe the bug
I expected the valueMask to mask the string in the stacktrace as well as the message. It does not.
To Reproduce
Steps to reproduce the behavior:
logback.xml
configurationlog.error("message key is apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx1234f", new RuntimeException("stacktrace key is apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx1234f"));
Expected behavior
The output for the
stack_trace
should not contain the apikey.Additional context
The text was updated successfully, but these errors were encountered: