Explorar o código

记录所有调用云存接口日志

chenshibin %!s(int64=4) %!d(string=hai) anos
pai
achega
956db34670
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      Service/CloudLogs.py

+ 1 - 6
Service/CloudLogs.py

@@ -26,13 +26,8 @@ def batch_add_log_ctr(request, status_code):
         request_dict = request.POST
     else:
         return
-    api_list = [
-        'cloudstorage/getsignsts',
-        'cloudstorage/storeplaylist',
-        'cloudstorage/queryvodlist',
-    ]
     request_path = request.path.strip().strip('/')
-    if request_path in api_list:
+    if 'cloudstorage' in request_path :
         user = MiscellService.get_access_name(request_dict)
         uidToken = request_dict.get('uidToken', None)
         utko = UidTokenObject(uidToken)