unstructured
7ad8e88a - feat: leverage logger to hide sensitive data in ingest logs (#2175)

Commit
2 years ago
feat: leverage logger to hide sensitive data in ingest logs (#2175) ### Description Modify the logger being used by ingest to leverage a new class implemented inheriting `logging.Formatter` which adds in some middleware to update the message being logged to omit any sensitive content. It does this by dynamically pulled out any valid json from the string being logged and runs that through a `hide_sensitive_fields` method which updated any values that are considered sensitive. Replaces the original json strings with the `json.dumps` version of the new dictionary.
Author
Parents
Loading