Skip to content

Commit

Permalink
changed to use ParseLogLevel instead of Unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugoro1 committed Jun 18, 2024
1 parent 70e415f commit 91e4e34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ func main() {
}

if logLevel != "" {
var level auto.LogLevel

err := level.UnmarshalText([]byte(logLevel))
level, err := auto.ParseLogLevel(logLevel)
if err != nil {
logger.Error(err, "failed to parse log level")
return
Expand Down

0 comments on commit 91e4e34

Please sign in to comment.