diff --git a/pkg/flags/flags.go b/pkg/flags/flags.go index f447ac6cc8ee3..a9493b0bf388d 100644 --- a/pkg/flags/flags.go +++ b/pkg/flags/flags.go @@ -42,11 +42,11 @@ func ConfigureAndParse(cmd *flag.FlagSet, args []string) { cmd.Parse(args) log.SetFormatter(getFormatter(*logFormat)) + setLogLevel(*logLevel) klog.InitFlags(nil) klog.SetLogger(logrusr.New(log.StandardLogger())) - setLogLevel(*logLevel) maybePrintVersionAndExit(*printVersion) }