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

提供优化思路 #5

Open
wavetg opened this issue Jun 9, 2022 · 1 comment
Open

提供优化思路 #5

wavetg opened this issue Jun 9, 2022 · 1 comment

Comments

@wavetg
Copy link

wavetg commented Jun 9, 2022

  • 最新的日志文件路径获取方式一点都不优雅,看了下大概是用os.walk遍历目录树,然后和手动生成的24小时日志标题做对比,这样不仅效率低,而且可能会有重复扫描或漏扫描问题。实在是太过暴力。而且就算不通过API,查找最新的目录下日志文件也可以用获取文件修改时间的方式来找到唯一的日志文件。
  • 给作者一个思路,青龙提供了API供其他应用调用,返回的数据包括但不限于任务的最新日志文件路径,最后执行时间,任务名等。https://qinglong.ukenn.top/
@keven1024
Copy link
Owner

挺好的思路,未来会加上😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants