style: add 503 warning log and regroup 502 test with federation_connect suite

This commit is contained in:
Brian Krabach
2026-04-01 14:33:27 -07:00
parent b1639826ab
commit 745e58bae6
2 changed files with 45 additions and 44 deletions
+2 -1
View File
@@ -1032,7 +1032,8 @@ async def federation_connect(
status_code=502,
detail=f"Remote returned {exc.response.status_code}",
)
except Exception:
except Exception as exc:
_log.warning("federation_connect: remote %s unreachable: %s", remote_url, exc)
raise HTTPException(
status_code=503,
detail=f"Remote unreachable: {remote_url}",