소스 검색

调试打印信息

locky 4 년 전
부모
커밋
0c7a48da84
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      controller/index.py

+ 2 - 0
controller/index.py

@@ -321,6 +321,8 @@ class oa2RtspStartView(TemplateView):
         return True
 
     def reqSendRtspMsg(self, url):
+        logger = logging.getLogger('django')
+        logger.info('--------请求接口--------')
         requests.get(url=url)
 
     # 触发此方法,让摄像头推流到MSG流地址