fix: remove all keyword args from logger.error 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.error to use simple string format instead of keyword
arguments to avoid Logger._log() errors completely.
This commit is contained in:
aitbc
2026-05-03 23:00:35 +02:00
parent f9cd2d9849
commit 217680f0ec

View File

@@ -41,13 +41,7 @@ class ErrorHandlerMiddleware(BaseHTTPMiddleware):
},
)
except Exception as e:
logger.error(
"Unhandled exception",
exc=str(e),
path=request.url.path,
method=request.method,
exc_info=True,
)
logger.error(f"Unhandled exception: {e} at {request.url.path}")
return JSONResponse(
status_code=500,
content={