From d2febb67a822e6ea16db545fcf93ebf82cca1613 Mon Sep 17 00:00:00 2001 From: jshixiong <2645476194@qq.com> Date: Wed, 7 Aug 2024 10:13:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(log):=20=E4=BF=AE=E6=94=B9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=AD=98=E5=82=A8=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login_info.py | 2 +- app/network.py | 2 +- app/request_info.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/login_info.py b/app/login_info.py index ab2dc87..3b60b78 100644 --- a/app/login_info.py +++ b/app/login_info.py @@ -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: diff --git a/app/network.py b/app/network.py index 671f644..67877bc 100644 --- a/app/network.py +++ b/app/network.py @@ -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): diff --git a/app/request_info.py b/app/request_info.py index d6be668..fa4cbbe 100644 --- a/app/request_info.py +++ b/app/request_info.py @@ -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: