Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: logger清除过期日志优化 #253

Closed
Hieuzest opened this issue Nov 23, 2023 · 0 comments
Closed

Bug: logger清除过期日志优化 #253

Hieuzest opened this issue Nov 23, 2023 · 0 comments
Labels
bug Something isn't working plugin: logger

Comments

@Hieuzest
Copy link
Contributor

logger会在启动时清除所有过期日志,这一过程是相对较慢的(可以肉眼观察到文件的删除进度)
那么在启动后快速Ctrl-C时,有一定概率使删除进程卡在中间状态,比如某一日的日志有1-20个部分,删除了前1-10部分后即被终止
在下一次打开时,由于删除总是从part1开始,于是报错

[W] app Error: ENOENT: no such file or directory, lstat '<...>\data\logs\2023-08-15-1.log'
@shigma shigma added bug Something isn't working plugin: logger labels Nov 23, 2023
@shigma shigma closed this as completed in aadf82c Nov 23, 2023
CyanChanges pushed a commit to CyanForks/webui that referenced this issue Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: logger
Projects
None yet
Development

No branches or pull requests

2 participants