Adding user logging for zebra.

This commit is contained in:
Samuel Clay 2022-01-24 16:41:16 -05:00
parent d1c5755200
commit 50b56d3f0c

View file

@ -65,7 +65,7 @@ def webhooks_v2(request):
event_json = json.loads(request.body)
event_key = event_json['type'].replace('.', '_')
logging.request(request, "~FBStripe webhook ~SB%s~SN~FB: ~FC%s" % (event_key, event_json))
logging.user(request.user, "~FBStripe webhook ~SB%s~SN~FB: ~FC%s" % (event_key, event_json))
if event_key in WEBHOOK_MAP:
WEBHOOK_MAP[event_key].send(sender=None, full_json=event_json)