guanhailong 2 жил өмнө
parent
commit
6e92629b06

+ 2 - 0
AdminController/VersionManagementController.py

@@ -9,6 +9,7 @@ import boto3
 import botocore
 from django.db import transaction
 from django.views.generic.base import View
+from Ansjer.config import LOGGER
 
 from Ansjer.config import BASE_DIR, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
 from Object.TokenObject import TokenObject
@@ -171,6 +172,7 @@ class VersionManagement(View):
                 with open(full_name, 'wb+') as write_file:
                     for chunk in file.chunks():
                         write_file.write(chunk)
+                LOGGER.info('versionManagement/upLoadFile成功上传{}'.format(file_name))
                 return response.json(0)
         except Exception as e:
             return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))