Add debug logging to Accept delivery

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-23 21:15:57 +00:00
parent bbc376aebc
commit dd9cb9f5f2

View File

@@ -80,6 +80,8 @@ async def send_accept(
) )
headers["Content-Type"] = AP_CONTENT_TYPE headers["Content-Type"] = AP_CONTENT_TYPE
log.info("Accept payload → %s: %s", follower_inbox, json.dumps(accept)[:500])
try: try:
async with httpx.AsyncClient(timeout=15) as client: async with httpx.AsyncClient(timeout=15) as client:
resp = await client.post( resp = await client.post(
@@ -87,7 +89,7 @@ async def send_accept(
content=body_bytes, content=body_bytes,
headers=headers, headers=headers,
) )
log.info("Accept → %s: %d", follower_inbox, resp.status_code) log.info("Accept → %s: %d %s", follower_inbox, resp.status_code, resp.text[:200])
except Exception: except Exception:
log.exception("Failed to send Accept to %s", follower_inbox) log.exception("Failed to send Accept to %s", follower_inbox)