|
@@ -179,6 +179,7 @@ class ModelService:
|
|
file = open(file_path, 'a+')
|
|
file = open(file_path, 'a+')
|
|
file.write(ip + "; username:" + userID + "; time:" + time.strftime(
|
|
file.write(ip + "; username:" + userID + "; time:" + time.strftime(
|
|
"%Y-%m-%d %H:%M:%S", time.localtime()) + "; " + operation)
|
|
"%Y-%m-%d %H:%M:%S", time.localtime()) + "; " + operation)
|
|
|
|
+ file.write('\n')
|
|
file.flush()
|
|
file.flush()
|
|
file.close()
|
|
file.close()
|
|
|
|
|