refactor(spec,loader): 优化项目结构,

- 提取公共方法
- 优化 Mirror FromLua trait 处理逻辑
- 新增 logger.rs 统一日志处理
- 其他优化
This commit is contained in:
2026-09-07 17:02:54 +08:00
parent 941558cb92
commit 94b4c23299
17 changed files with 1086 additions and 995 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ impl Logger {
pub fn init_logging_from(layout: &Layout) -> Option<WorkerGuard> {
// 1. 在 layout.base_dir 目录下寻找 log.toml
// let config_path = layout.base_dir.join("mirror.toml");
let config_path = layout.base_dir.join("../../mirror.ini");
let config_path = layout.base_dir.join("mirror.ini");
// 读取配置文件(如不存在或解析失败,降级回退到默认设置)
let config = if config_path.exists() {