Don't print the JSON of webhooks
This commit is contained in:
parent
6464b6de05
commit
6385339b7b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue