Parcourir la source

master添加异常日志6

tanghongbin il y a 4 ans
Parent
commit
3c24c872e9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)