File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11import asyncio
2+ import logging
23
34from django .conf import settings
45from django .http import HttpRequest , JsonResponse
@@ -19,14 +20,20 @@ class AsyncWebhookView(BaseAsyncWebhookView):
1920
2021 @override
2122 async def post (self , request : HttpRequest ) -> JsonResponse :
23+ logging .info ("Handling GH Post" )
2224 event = self .get_event (request )
2325
2426 found_callbacks = self .router .fetch (event )
27+ logging .info (f"Callbacks found: { ', ' .join ([str (f ) for f in found_callbacks ])} " )
2528 if found_callbacks :
29+ logging .info ("Creating EventLog" )
2630 event_log = await EventLog .objects .acreate_from_event (event )
31+ logging .info ("Dispatching callbacks" )
2732 await self .router .adispatch (event , None )
33+ logging .info ("Sending Response" )
2834 return self .get_response (event_log )
2935 else :
36+ logging .info ("Sending shortcut response" )
3037 return JsonResponse (
3138 {
3239 "message" : "ok" ,
Original file line number Diff line number Diff line change 1313errorlog = "-"
1414loglevel = "info"
1515accesslog = "-"
16+ access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" %(M)'
You can’t perform that action at this time.
0 commit comments