diff --git a/infrastructure/ap_inbox_handlers.py b/infrastructure/ap_inbox_handlers.py index 49a9732..fa48b2d 100644 --- a/infrastructure/ap_inbox_handlers.py +++ b/infrastructure/ap_inbox_handlers.py @@ -80,6 +80,8 @@ async def send_accept( ) headers["Content-Type"] = AP_CONTENT_TYPE + log.info("Accept payload → %s: %s", follower_inbox, json.dumps(accept)[:500]) + try: async with httpx.AsyncClient(timeout=15) as client: resp = await client.post( @@ -87,7 +89,7 @@ async def send_accept( content=body_bytes, 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: log.exception("Failed to send Accept to %s", follower_inbox)