File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 66 "time"
77
88 "github.com/xg4/vaultwarden-backup/internal/config"
9- "github.com/xg4/vaultwarden-backup/internal/engine "
9+ "github.com/xg4/vaultwarden-backup/internal/scheduler "
1010 "github.com/xg4/vaultwarden-backup/internal/tasks"
1111)
1212
@@ -34,7 +34,7 @@ func (a *App) Run() error {
3434 timestamp := startTime .Format ("20060102_150405" )
3535 slog .Info ("🚀 开始备份" , "timestamp" , timestamp )
3636
37- s := engine .New (a .cfg )
37+ s := scheduler .New (a .cfg )
3838
3939 // 阶段1: 环境检查和准备
4040 s .Register (
Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ func getLogLevel() slog.Level {
3131 case "ERROR" , "error" :
3232 return slog .LevelError
3333 default :
34- // 生产环境默认使用 INFO 级别
35- if os .Getenv ("ENV" ) == "production" {
36- return slog .LevelWarn
37- }
3834 return slog .LevelInfo
3935 }
4036}
Original file line number Diff line number Diff line change 1- package engine
1+ package scheduler
22
33import (
44 "log/slog"
Original file line number Diff line number Diff line change 1- package engine
1+ package scheduler
22
33import (
44 "github.com/xg4/vaultwarden-backup/internal/config"
You can’t perform that action at this time.
0 commit comments