
CodexandClaude Opus 4.7
7715b93eca
fix(manage_logs): 修复 douyin_logging 拆分后的 import 回归
douyin/logging/douyin_logging.py 在 e35e8a8 commit 拆分为子包后,
原文件改成 re-export shim,不再"恰好"暴露 module-level 的 path_config
和全局变量 _log_monitor。
bin/manage_logs.py 之前依赖这两个间接 import:
from douyin.logging.douyin_logging import path_config # 副作用
from douyin.logging.douyin_logging import _log_monitor # 全局变量
修复:
- path_config 改为直接从源头导入:from douyin.core import path_config
- _log_monitor 改为从子包内部状态读取:
from douyin.logging.douyin_logging_pkg import _common as _logging_state
_log_monitor = _logging_state._log_monitor
回归:
- bin/manage_logs.py --help / monitor / stats 三个子命令全部正常
- pytest 353 passed / 1 skipped 不变
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 17:48:17 +08:00
..
2026-05-21 00:23:14 +08:00
2026-05-21 17:48:17 +08:00
2026-05-21 10:18:17 +08:00
2026-05-21 00:23:14 +08:00