fix: replace 'error' with 'exc' in error_handler middleware
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
Systemd Sync / sync-systemd (push) Successful in 20s

Changed logger.error keyword argument from 'error' to 'exc' to avoid
Logger._log() errors in the error handler middleware.
This commit is contained in:
aitbc
2026-05-03 23:00:02 +02:00
parent 69f8930d73
commit f9cd2d9849

View File

@@ -43,7 +43,7 @@ class ErrorHandlerMiddleware(BaseHTTPMiddleware):
except Exception as e:
logger.error(
"Unhandled exception",
error=str(e),
exc=str(e),
path=request.url.path,
method=request.method,
exc_info=True,