Skip to content

Commit

Permalink
set default loglevel to warn during init (#1141)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
  • Loading branch information
rberrelleza committed Oct 28, 2020
1 parent 59f1911 commit 8a2e121
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import (
)

func init() {
log.SetLevel("warn")

// override client-go error handlers to downgrade the "logging before flag.Parse" error
errorHandlers := []func(error){
func(e error) {
Expand Down

0 comments on commit 8a2e121

Please sign in to comment.