TEMP: log full OC webhook payload to diagnose tier field shape
This commit is contained in:
1 parent
8a320bfed7
commit
a85369341c
1 file changed
+3
@@ -1262,6 +1262,9 @@ async def opencollective_webhook(request: Request, token: str):
|
|||||||
raise HTTPException(401, "Invalid webhook token")
|
raise HTTPException(401, "Invalid webhook token")
|
||||||
|
|
||||||
payload = await request.json()
|
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", "")
|
event_type = payload.get("type", "")
|
||||||
data = payload.get("data", {})
|
data = payload.get("data", {})
|
||||||
|
|||||||
Reference in new issue
Block a user