refactor(spec,loader): 优化项目结构,
- 提取公共方法 - 优化 Mirror FromLua trait 处理逻辑 - 新增 logger.rs 统一日志处理 - 其他优化
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user