Procházet zdrojové kódy

推送加日志打印

zhangdongming před 2 roky
rodič
revize
56b4c20f55
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      Controller/DetectControllerV2.py

+ 2 - 0
Controller/DetectControllerV2.py

@@ -101,6 +101,7 @@ class NotificationV2View(View):
                 return JsonResponse(status=200, data={'code': 176, 'msg': 'no uid_push data'})
             ai_type = uid_push_qs.first()['uid_set__ai_type']
             event_type = self.get_combo_msg_type(ai_type, event_type)
+            logger.info('Result事件类型:{}'.format(event_type))
             redis_list = []
             for qs in uid_push_qs:
                 redis_list.append(qs)
@@ -318,6 +319,7 @@ class NotificationV2View(View):
         获取组合类型,ai_type == 47 支持算法小店,需判断组合类型
         """
         logger = logging.getLogger('info')
+        logger.info('-----设备类型{},事件类型{}'.format(ai_type, event_type))
         try:
             if ai_type != 47:
                 return event_type