diff --git a/common/logging_config.py b/common/logging_config.py index b779ca6..8a6e360 100644 --- a/common/logging_config.py +++ b/common/logging_config.py @@ -41,7 +41,7 @@ def _add_trace_context(logger, method_name, event_dict): # Fragments match anywhere in the key (db_password, refresh_token); the exact # names are too short or too specific to match as fragments ("pan" would # catch "company"). -_REDACT_FRAGMENTS = ("password", "passwd", "secret", "token", "authorization", "cookie", "api_key") +_REDACT_FRAGMENTS = ("password", "passwd", "secret", "token", "authorization", "cookie", "api_key", "holder_name") _REDACT_EXACT = {"pan", "card_number", "cvv", "cvc", "holder_name"} _REDACTED = "[REDACTED]"