Skip to content

Commit

Permalink
fix: set log level before klog.SetLogger
Browse files Browse the repository at this point in the history
Fixes linkerd#12887

Signed-off-by: Takumi Sue <[email protected]>
  • Loading branch information
mikutas committed Jul 31, 2024
1 parent 99fd7e1 commit 8eabe62
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 8eabe62

Please sign in to comment.