Skip to content

Commit

Permalink
fix: set log level before klog.SetLogger
Browse files Browse the repository at this point in the history
Signed-off-by: Takumi Sue <[email protected]>
  • Loading branch information
mikutas committed Jul 31, 2024
1 parent 722f537 commit a9d5990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a9d5990

Please sign in to comment.