From 025f81c3f1a42b66460c323055dee87c2a1a5795 Mon Sep 17 00:00:00 2001 From: Brian Krabach Date: Wed, 1 Apr 2026 10:55:33 -0700 Subject: [PATCH] fix: log exception from federation_client aclose for observability --- muxplex/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/muxplex/main.py b/muxplex/main.py index cb5417f..7cfbc6d 100644 --- a/muxplex/main.py +++ b/muxplex/main.py @@ -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: