소스 검색

ip地址记录

chenshibin 4 년 전
부모
커밋
0c76033b92
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -507,7 +507,7 @@ def admin_addInterface(request):
                 file_path = '/'.join((BASE_DIR, 'static/test.log'))
 
                 file = open(file_path, 'a+')
-                file.write(ipdizhi+"; username:"+username)
+                file.write(ipdizhi+"; username:"+username+";time"+time.localtime())
                 file.write('\n')
                 file.flush()
                 file.close()