记录事件触发日志
This commit is contained in:
parent
41dd3609f5
commit
1618ea29fe
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue