报警事件日志打印

This commit is contained in:
曹前明 2022-08-25 14:01:26 +08:00
parent 3d91e84d69
commit 41dd3609f5
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import json
import logging
from rest_framework.exceptions import ParseError, APIException
from apps.ecm.service import dispatch_dahua_event, dispatch_xunxi_event
from apps.hrm.services import HrmService
@ -17,6 +18,7 @@ from apps.third.serializers import PicSerializer, RequestCommonSerializer
from rest_framework import serializers
import stomp
from django.conf import settings
myLogger = logging.getLogger('log')
# Create your views here.
@ -263,5 +265,6 @@ class DhCommonViewSet(CreateModelMixin, CustomGenericViewSet):
"""
其他报警转到事件派发
"""
myLogger.info(data)
dispatch_dahua_event(data=data)
return Response()