From a85369341ca0d2c9c109d049b19cf116dfc73380 Mon Sep 17 00:00:00 2001 From: inference-bot Date: Sun, 27 Sep 2026 21:58:25 -0600 Subject: [PATCH] TEMP: log full OC webhook payload to diagnose tier field shape --- app/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.py b/app/main.py index 5801d8e..6e5ef7d 100644 --- a/app/main.py +++ b/app/main.py @@ -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", {})