EasyTier / EasyTier/easytier-manager

easytier日志文件生成问题

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
278
Forks
38
Avg merge
2d 7h
Merged PRs (30d)
1

Description

easytier自从v2.3.2版本开始支持了多配置文件加载功能,此功能会导致配置文件中的日志配置失效,具体见该issue:https://github.com/EasyTier/EasyTier/issues/984

对easytier-manager的影响是通过表单进行的日志设置均不生效,日志文件并未生成,在工作台点击查看日志时始终为空白日志,且easytier-manager会报错提示找不到日志文件
```
ERROR [webview:iB]: Error reading file logs/easytier.2026-01-10:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.2026-01-10 with error: 系统找不到指定的文件。 (os error 2)"
ERROR [webview:iB]: Error reading file logs/easytier.2026-01-10.log:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.2026-01-10.log with error: 系统找不到指定的文件。 (os error 2)"
ERROR [webview:iB]: Error reading file logs/easytier.log:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.log with error: 系统找不到指定的文件。 (os error 2)"
```

建议将表单修改配置中的日志设置移除,转移到easytier-manager设置中的日志与维护来配置日志等级等,按照上述issue中的暂行解决方法处理,启动easytier-core时添加`--file-log-level`和`--file-log-dir`参数或使用`ET_FILE_LOG_LEVEL`和`ET_FILE_LOG_DIR`环境变量

缺点是无法对日志数量和大小限制进行设置,在bug未解决的情况下暂时无解

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.