fix: log exception from federation_client aclose for observability

This commit is contained in:
Brian Krabach
2026-04-01 10:55:33 -07:00
parent 8d8d0826a7
commit 025f81c3f1
+2
View File
@@ -182,6 +182,8 @@ async def lifespan(app: FastAPI):
try:
await app.state.federation_client.aclose()
except Exception:
_log.exception("federation_client aclose error")
finally:
# Shutdown: cancel the poll loop task and wait for it to finish.
if _poll_task is not None: