From 1618ea29fe62607d0de371d1d8fe2d50f9e82cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Thu, 25 Aug 2022 14:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=BA=8B=E4=BB=B6=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/third/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/third/views.py b/apps/third/views.py index 9db90b70..08baec64 100755 --- a/apps/third/views.py +++ b/apps/third/views.py @@ -240,7 +240,7 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet): @action(methods=['post'], detail=False, authentication_classes=[], permission_classes=[], - serializer_class=serializers.Serializer, logging_methods=[]) # 不记录日志 + serializer_class=serializers.Serializer, logging_methods=['post']) # 不记录日志 def mq(self, request, pk=None): """大华事件处理 @@ -265,6 +265,5 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet): """ 其他报警转到事件派发 """ - myLogger.info(data) dispatch_dahua_event(data=data) return Response()