-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add feature to hide sensitive data in logs #115
Conversation
I initially thought about this but dropped it because
Still, if we are sure that we are not going to have any other pattern in the future, we can simplify the logic. In that case, using class constant is a good solution. |
My main concern is repetition, since the current implementation means that we'll have a Why don't we move
We could then add a |
I thought about this too. The issue with this is that it is strange to call a method for performing some action but also it accept parameters unrelated to what it is supposed to do. (though it already does more than one thing). I thought it is better to not change the parameters and limit the changes in the implementation only.
I think this is good. I do it 👍🏾 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one small thing, no need for re-review.
With this implementation, we can set the sensitive data pattern in the closest place to the sensitive data. This can (hopefully) prevent accidental typos in pattern matching.
I couldn't implement test for this feature.
Closes #97