(self, record: logging.LogRecord)
| 84 | |
| 85 | class _SecretRedactionFilter(logging.Filter): |
| 86 | def filter(self, record: logging.LogRecord) -> bool: |
| 87 | record.msg = _redact_log_text(record.msg) |
| 88 | if isinstance(record.args, tuple): |
| 89 | record.args = tuple(_redact_log_text(arg) for arg in record.args) |
| 90 | elif isinstance(record.args, dict): |
| 91 | record.args = {k: _redact_log_text(v) for k, v in record.args.items()} |
| 92 | return True |
| 93 | |
| 94 | |
| 95 | _ORIGINAL_LOG_RECORD_FACTORY = logging.getLogRecordFactory() |
nothing calls this directly
no test coverage detected