保存三数据库日志与三十天清理实现,继续补充验收
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-08 22:30:50 +08:00
1 parent 9bdf866a87
commit 5faadcd6eb
41 files changed
+1994 -59

No files matched your search

+6
View File
@@ -8,6 +8,7 @@ import (
"git.pcux.cn/xuans/Smail/internal/buildinfo"
"git.pcux.cn/xuans/Smail/listen/cron_server"
"git.pcux.cn/xuans/Smail/res_init"
"git.pcux.cn/xuans/Smail/services/runtimelog"
"git.pcux.cn/xuans/Smail/utils/runtimepath"
log "github.com/sirupsen/logrus"
)
@@ -23,6 +24,11 @@ func Run() error {
if err := config.Init(); err != nil {
return err
}
runtimeLogs, err := runtimelog.Start(config.ROOT_PATH)
if err != nil {
return fmt.Errorf("启动运行日志失败: %w", err)
}
defer runtimeLogs.Close()
config.MaintainManagedSSLHistory()
build := buildinfo.Current()