Remove x-api-key from logs (#2802)

This commit is contained in:
Shuchang Zheng
2025-06-27 09:14:50 +09:00
committed by GitHub
parent 9dd6207286
commit 17886fc384

View File

@@ -14,7 +14,7 @@ if typing.TYPE_CHECKING: # pragma: no cover - import only for type hints
LOG = structlog.get_logger()
_SENSITIVE_HEADERS = {"authorization", "cookie"}
_SENSITIVE_HEADERS = {"authorization", "cookie", "x-api-key"}
_MAX_BODY_LENGTH = 1000
_BINARY_PLACEHOLDER = "<binary>"