fix: log exception from federation_client aclose for observability
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user