fix: remove keyword args from logger.info in PerformanceLoggingMiddleware
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.info to use string formatting instead of keyword arguments to avoid Logger._log() errors.
This commit is contained in:
@@ -28,11 +28,7 @@ class PerformanceLoggingMiddleware(BaseHTTPMiddleware):
|
||||
|
||||
# Log performance metrics
|
||||
logger.info(
|
||||
"Request performance",
|
||||
method=request.method,
|
||||
path=request.url.path,
|
||||
status_code=response.status_code,
|
||||
duration_ms=round(duration * 1000, 2),
|
||||
f"Request performance - Method: {request.method}, Path: {request.url.path}, Status: {response.status_code}, Duration: {round(duration * 1000, 2)}ms"
|
||||
)
|
||||
|
||||
# Add performance header
|
||||
|
||||
Reference in New Issue
Block a user