fix: remove keyword args from logger.warning in validation_error_handler
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

Changed logger.warning to use string formatting instead of keyword
arguments to avoid Logger._log() errors.
This commit is contained in:
aitbc
2026-05-03 23:03:32 +02:00
parent c689742d0b
commit b846ca661d

View File

@@ -471,13 +471,7 @@ def create_app() -> FastAPI:
"""Handle FastAPI validation errors with structured error responses."""
request_id = request.headers.get("X-Request-ID")
logger.warning(
f"Validation error: {exc}",
extra={
"request_id": request_id,
"path": request.url.path,
"method": request.method,
"validation_errors": exc.errors(),
},
f"Validation error: {exc}, Request ID: {request_id}, Path: {request.url.path}, Method: {request.method}"
)
details = []