记录事件触发日志

This commit is contained in:
曹前明 2022-08-25 14:07:37 +08:00
parent 41dd3609f5
commit 1618ea29fe
1 changed files with 1 additions and 2 deletions

View File

@ -240,7 +240,7 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet):
@action(methods=['post'], detail=False, @action(methods=['post'], detail=False,
authentication_classes=[], permission_classes=[], authentication_classes=[], permission_classes=[],
serializer_class=serializers.Serializer, logging_methods=[]) # 不记录日志 serializer_class=serializers.Serializer, logging_methods=['post']) # 不记录日志
def mq(self, request, pk=None): def mq(self, request, pk=None):
"""大华事件处理 """大华事件处理
@ -265,6 +265,5 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet):
""" """
其他报警转到事件派发 其他报警转到事件派发
""" """
myLogger.info(data)
dispatch_dahua_event(data=data) dispatch_dahua_event(data=data)
return Response() return Response()