fix: remove keyword args from logger.warning in error_handler
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (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:02:31 +02:00
parent ac7b8bb67c
commit c689742d0b

View File

@@ -23,11 +23,7 @@ class ErrorHandlerMiddleware(BaseHTTPMiddleware):
return response
except HTTPException as e:
logger.warning(
"HTTP exception",
status_code=e.status_code,
detail=e.detail,
path=request.url.path,
method=request.method,
f"HTTP exception - Status: {e.status_code}, Detail: {e.detail}, Path: {request.url.path}, Method: {request.method}"
)
return JSONResponse(
status_code=e.status_code,