diff --git a/collector/main.go b/collector/main.go index 8a5565b..85f4ccf 100644 --- a/collector/main.go +++ b/collector/main.go @@ -35,7 +35,7 @@ func Execute(cmd *cobra.Command, args []string) error { if err != nil { ui.Error().Msgf("Invalid log level: %v - use one of: %v", *loglevel, ui.LogLevelStrings()) } else { - ui.SetDefaultLoglevel(ll) + ui.SetLoglevel(ll) } if *logfile != "" { diff --git a/modules/cli/main.go b/modules/cli/main.go index 3348128..c0b7e16 100644 --- a/modules/cli/main.go +++ b/modules/cli/main.go @@ -68,7 +68,7 @@ func Run() error { if err != nil { ui.Error().Msgf("Invalid log level: %v - use one of: %v", *loglevel, ui.LogLevelStrings()) } else { - ui.SetDefaultLoglevel(ll) + ui.SetLoglevel(ll) } if *logfile != "" {