chore: speed test log path

This commit is contained in:
guorong.zheng 2025-05-06 16:26:31 +08:00
parent bf42fa530d
commit 8562cace03
4 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ def show_epg_gz():
@app.route("/log")
def show_log():
if os.path.exists(constants.sort_log_path):
with open(constants.sort_log_path, "r", encoding="utf-8") as file:
if os.path.exists(constants.speed_test_log_path):
with open(constants.speed_test_log_path, "r", encoding="utf-8") as file:
content = file.read()
else:
content = constants.waiting_tip

View File

@ -737,7 +737,7 @@ def sort_channel_result(channel_data, result, filter_host=False, ipv6_support=Tr
Sort channel result
"""
channel_result = defaultdict(lambda: defaultdict(list))
logger = get_logger(constants.sort_log_path, level=INFO, init=True)
logger = get_logger(constants.speed_test_log_path, level=INFO, init=True)
for cate, obj in channel_data.items():
for name, values in obj.items():
if not values:

View File

@ -43,7 +43,7 @@ hls_ipv6_result_path = os.path.join(output_dir, "ipv6/hls.txt")
cache_path = os.path.join(output_dir, "data/cache.pkl.gz")
sort_log_path = os.path.join(output_dir, "log/sort.log")
speed_test_log_path = os.path.join(output_dir, "log/speed_test.log")
log_path = os.path.join(output_dir, "log/log.log")