[mod] add request content in error debug

This commit is contained in:
Laurent Peuch 2020-06-16 00:10:07 +02:00
parent 007f1d8a9f
commit 59c9280d4a

View file

@ -482,6 +482,12 @@ async def github(request):
import traceback import traceback
traceback.print_exc() traceback.print_exc()
try:
print(request.json)
except Exception():
pass
await notify( await notify(
f"Error in Webhooks: exception {e} on {hook_type} webhooks, please see logs" f"Error in Webhooks: exception {e} on {hook_type} webhooks, please see logs"
) )