feat: replace stdlig flag with pflag by spf13

This commit is contained in:
2026-04-23 22:42:35 +02:00
parent 5e2043d54e
commit 939338477c
5 changed files with 20 additions and 14 deletions
+2 -2
View File
@@ -32,11 +32,11 @@ func main() {
}
// kick off the watchdog depending on the environment variables
if env.WatchdogEnabled {
if env.Watchdog {
slog.Info("kicking off database watchdog", "watchdog_interval", env.WatchdogInterval)
database.KickoffDatabaseWatchdog(env, db)
} else {
slog.Info("skipping database watchdog", "watchdog_enabled", env.WatchdogEnabled)
slog.Info("skipping database watchdog", "watchdog_enabled", env.Watchdog)
}
// TO DO make gin log as json