Skip to content

Commit

Permalink
exposing log level flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Urbaniak authored and sstarcher committed Sep 25, 2023
1 parent 468feca commit 7a3ebb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ func main() {
flagenv.Parse()
flag.Parse()

logrus.SetLevel(logrus.ParseLevel(logLevel))
logrusLevel, err := logrus.ParseLevel(*logLevel)
if err != nil {
log.Fatalf("Wrong log level provided: %s", err)
}
logrus.SetLevel(logrusLevel)

config := config.New(*configFile)
if *fetchLatest {
Expand Down

0 comments on commit 7a3ebb3

Please sign in to comment.