TEMP: log full OC webhook payload to diagnose tier field shape

This commit is contained in:
inference-bot committed 2026-09-27 21:58:25 -06:00
1 parent 8a320bfed7
commit a85369341c
1 file changed
+3
+3
View File
@@ -1262,6 +1262,9 @@ async def opencollective_webhook(request: Request, token: str):
raise HTTPException(401, "Invalid webhook token")
payload = await request.json()
# DEBUG (temporary): log the full payload once to learn the real shape of
# tier fields on order.processed. Remove after tier routing is verified.
logger.info("OC webhook payload: %s", json.dumps(payload)[:1500])
event_type = payload.get("type", "")
data = payload.get("data", {})