fix(log): 修改信息存储路径

test
jshixiong 1 year ago
parent c70654ebc1
commit d2febb67a8

@ -1,6 +1,6 @@
import json
login_file_path = '/data/ww/py_sys_monitor/login_info'
login_file_path = '/data/ww/py_sys_monitor/info/login_info'
def get_recent_login_info(page_index=1, page_size=10):
if page_index <= 0:

@ -5,7 +5,7 @@ import os
from datetime import datetime, timedelta
from collections import deque
log_file_path = '/data/ww/py_sys_monitor/net_speed'
log_file_path = '/data/ww/py_sys_monitor/info/net_speed'
def ensure_log_file_exists():
if not os.path.exists(log_file_path):

@ -2,7 +2,7 @@ import os
import json
from flask import request
log_file_path = '/data/ww/py_sys_monitor/access_log'
log_file_path = '/data/ww/py_sys_monitor/info/access_log'
def get_request_info(page_index=1, page_size=10):
if page_index <= 0:

Loading…
Cancel
Save