From 6385339b7bc4b1fa543e57f63de4446e1c808091 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 14 Feb 2023 07:20:47 +0000 Subject: [PATCH] Don't print the JSON of webhooks --- core/views/assets.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/views/assets.py b/core/views/assets.py index cbff641..698a603 100644 --- a/core/views/assets.py +++ b/core/views/assets.py @@ -1,5 +1,3 @@ -import json - from django.contrib.auth.mixins import LoginRequiredMixin from django.db import IntegrityError from django.http import HttpResponse @@ -118,7 +116,7 @@ class AssetGroupAPI(APIView): def post(self, request, webhook_id): # log.debug(f"AssetAPI POST {webhook_id}: {request.data}") - print(json.dumps(request.data, indent=2)) + # print(json.dumps(request.data, indent=2)) try: group = AssetGroup.objects.get(webhook_id=webhook_id)