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

Changed logger.info to use string formatting instead of keyword
arguments to avoid Logger._log() errors.
This commit is contained in:
aitbc
2026-05-03 23:06:11 +02:00
parent b3cb4a8c2b
commit 8568fcb70a

View File

@@ -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