diff --git a/bin/manage_logs.py b/bin/manage_logs.py index c5b186f..40c0e54 100644 --- a/bin/manage_logs.py +++ b/bin/manage_logs.py @@ -30,11 +30,11 @@ from typing import Dict, Any # 添加项目根到 sys.path(从 bin/ 目录运行时需要) sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from douyin.core import path_config from douyin.logging.douyin_logging import ( cleanup_old_logs, compress_log_file, get_log_stats, - path_config ) @@ -178,7 +178,8 @@ def show_monitor_status() -> None: """显示监控器状态""" print("\n=== 日志监控状态 ===") - from douyin.logging.douyin_logging import _log_monitor + from douyin.logging.douyin_logging_pkg import _common as _logging_state + _log_monitor = _logging_state._log_monitor if _log_monitor and _log_monitor._running: print("状态: 运行中")