Explorar o código

查询增加打印

zhangdongming %!s(int64=3) %!d(string=hai) anos
pai
achega
5d152bbf35
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Controller/MessagePush/EquipmentMessagePush.py

+ 3 - 0
Controller/MessagePush/EquipmentMessagePush.py

@@ -47,7 +47,10 @@ class EquipmentMessagePushView(View):
 
     @classmethod
     def do_uid_set_query(cls, request_dict, response):
+
+        logger = logging.getLogger('info')
         uid = request_dict.get('uid', None)
+        logger.info("----查询状态打印uid{}".format(uid))
         if not uid:
             return response.json(444, 'uid')
         uid_set_qs = UidSetModel.objects.filter(uid=uid).order_by('-updTime')