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

Implemented support for escaping log entry arguments. #84

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

TyVik
Copy link
Contributor

@TyVik TyVik commented Apr 18, 2019

I develop HIPAA compliant application and I need to escape all PHI (Protected Health Information) like first name and last name. I override handlers and escape all parameters for the template string by default. Unfortunately, I see the first name and last name in the logs in debug mode because the first argument (format string) not escaping.
Could you please approve that PR which replace
log.debug('full name: {}'.format('John Smith')) to log.debug('full name: %s', 'John Smith'). It helps to escape John Smith in the logs like full name: **** *****.

@derek73 derek73 added this to the v1.0.3 milestone Apr 19, 2019
@derek73 derek73 merged commit 37fa297 into derek73:master Apr 19, 2019
@derek73
Copy link
Owner

derek73 commented Apr 19, 2019

No problem. Thanks for the pull request! This will go out with v1.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants