Skip to content

Commit

Permalink
fix: util.cli.SetLogLevel should update global log level (#6852)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Matyushentsev <[email protected]>
  • Loading branch information
Alexander Matyushentsev authored Jul 29, 2021
1 parent 2abf284 commit 17bef1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func SetLogLevel(logLevel string) {
level, err := log.ParseLevel(text.FirstNonEmpty(logLevel, log.InfoLevel.String()))
errors.CheckError(err)
os.Setenv(common.EnvLogLevel, level.String())
log.SetLevel(level)
}

// SetGLogLevel set the glog level for the k8s go-client
Expand Down

0 comments on commit 17bef1c

Please sign in to comment.