Spaces:
Runtime error
Runtime error
derek-thomas
commited on
Commit
·
865eaaa
1
Parent(s):
fb9efd9
Adding payload debug
Browse files
app.py
CHANGED
@@ -79,6 +79,7 @@ async def community(payload: WebhookPayload, task_queue: BackgroundTasks):
|
|
79 |
except:
|
80 |
return Response("No task scheduled", status_code=status.HTTP_200_OK)
|
81 |
|
|
|
82 |
logger.info(f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}")
|
83 |
task_queue.add_task(_process_webhook, payload=payload)
|
84 |
return Response("Task scheduled.", status_code=status.HTTP_202_ACCEPTED)
|
|
|
79 |
except:
|
80 |
return Response("No task scheduled", status_code=status.HTTP_200_OK)
|
81 |
|
82 |
+
logger.info(f"\n\n{payload}\n\n")
|
83 |
logger.info(f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}")
|
84 |
task_queue.add_task(_process_webhook, payload=payload)
|
85 |
return Response("Task scheduled.", status_code=status.HTTP_202_ACCEPTED)
|