소스 검색

测试打印日志

locky 4 년 전
부모
커밋
5bfcb144be
2개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 4
      Controller/DetectControllerV2.py
  2. 2 1
      Controller/TestApi.py

+ 0 - 4
Controller/DetectControllerV2.py

@@ -11,7 +11,6 @@
 @file: DetectController.py
 @Contact: chanjunkai@163.com
 """
-import logging
 import os
 import time
 
@@ -66,14 +65,11 @@ class DetectControllerViewV2(View):
         return self.validation(request.POST, operation)
 
     def validation(self, request_dict, operation):
-        logger = logging.getLogger('info')
-        logger.info('V2新增查找慢进来了')
         response = ResponseObject()
         if operation is None:
             return response.json(444, 'error path')
         token = request_dict.get('token', None)
         tko = TokenObject(token)
-        logger.info('V2新增查找慢进来了')
         if tko.code == 0:
             userID = tko.userID
             # 修改推送设置

+ 2 - 1
Controller/TestApi.py

@@ -24,7 +24,6 @@ import time
 import urllib
 import datetime
 from Object.AliPayObject import AliPayObject
-import logging
 import boto3
 from boto3.session import Session
 from botocore.exceptions import ClientError
@@ -83,6 +82,8 @@ class testView(View):
         if operation is None:
             return response.json(444, 'error path')
         elif operation == 'tests':
+            logger = logging.getLogger('info')
+            logger.info('测试打印')
             res = make_password(123456)
             return JsonResponse(status=200, data=res,safe=False)
         elif operation == 'cbu':