Add debug logging to Accept delivery
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user