Fix monitoring PF CI lint issues
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 37s
CI / go (push) Successful in 43s
CI / python (push) Successful in 2s

This commit is contained in:
Grendgi
2026-06-09 11:33:33 +03:00
parent 95112cc450
commit d53ecb2add
6 changed files with 36 additions and 28 deletions

View File

@@ -24,7 +24,11 @@ func main() {
slog.Error("db_open_failed", "error", err)
os.Exit(1)
}
defer app.Close()
defer func() {
if err := app.Close(); err != nil {
slog.Warn("app_close_failed", "error", err)
}
}()
interval := cfg.SchedulerInterval()
slog.Info("monitoring_pf_scheduler_started", "interval", interval.String())