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