fix: log exception from federation_client aclose for observability
This commit is contained in:
@@ -182,6 +182,8 @@ async def lifespan(app: FastAPI):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await app.state.federation_client.aclose()
|
await app.state.federation_client.aclose()
|
||||||
|
except Exception:
|
||||||
|
_log.exception("federation_client aclose error")
|
||||||
finally:
|
finally:
|
||||||
# Shutdown: cancel the poll loop task and wait for it to finish.
|
# Shutdown: cancel the poll loop task and wait for it to finish.
|
||||||
if _poll_task is not None:
|
if _poll_task is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user