mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[mod] add request content in error debug
This commit is contained in:
parent
007f1d8a9f
commit
59c9280d4a
1 changed files with 6 additions and 0 deletions
|
@ -482,6 +482,12 @@ async def github(request):
|
|||
import traceback
|
||||
|
||||
traceback.print_exc()
|
||||
|
||||
try:
|
||||
print(request.json)
|
||||
except Exception():
|
||||
pass
|
||||
|
||||
await notify(
|
||||
f"Error in Webhooks: exception {e} on {hook_type} webhooks, please see logs"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue