feat: replace stdlig flag with pflag by spf13
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user