소스 검색

master添加异常日志6

tanghongbin 4 년 전
부모
커밋
3c24c872e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Service/ModelService.py

+ 1 - 1
Service/ModelService.py

@@ -174,7 +174,7 @@ class ModelService:
 
     @staticmethod
     def add_log(ip, userID, operation):
-        file_path = '/'.join((BASE_DIR, 'static/delete_device.log'))
+        file_path = '/'.join((BASE_DIR, 'static/add_device.log'))
         file = open(file_path, 'a+')
         file.write(ip + "; username:" + userID + "; time:" + time.strftime(
             "%Y-%m-%d %H:%M:%S", time.localtime()) + "; " + operation)