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
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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user