Don't print the JSON of webhooks

This commit is contained in:
Mark Veidemanis 2023-02-14 07:20:47 +00:00
parent 6464b6de05
commit 6385339b7b
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
import json
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.mixins import LoginRequiredMixin
from django.db import IntegrityError from django.db import IntegrityError
from django.http import HttpResponse from django.http import HttpResponse
@ -118,7 +116,7 @@ class AssetGroupAPI(APIView):
def post(self, request, webhook_id): def post(self, request, webhook_id):
# log.debug(f"AssetAPI POST {webhook_id}: {request.data}") # log.debug(f"AssetAPI POST {webhook_id}: {request.data}")
print(json.dumps(request.data, indent=2)) # print(json.dumps(request.data, indent=2))
try: try:
group = AssetGroup.objects.get(webhook_id=webhook_id) group = AssetGroup.objects.get(webhook_id=webhook_id)