Skip to content

Comments

Implemented support for escaping log entry arguments.#84

Merged
derek73 merged 1 commit intoderek73:masterfrom
TyVik:hipaa_compliant
Apr 19, 2019
Merged

Implemented support for escaping log entry arguments.#84
derek73 merged 1 commit intoderek73:masterfrom
TyVik:hipaa_compliant

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