Skip to content

Commit

Permalink
Fix CodeClimate error
Browse files Browse the repository at this point in the history
  • Loading branch information
obourdon committed Oct 23, 2020
1 parent f0d1b26 commit 4c1aeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Serve(c *util.Config) error {
}
}
if !logLevelFound {
return errors.New(fmt.Sprintf("Unsupported log level: %s", c.LogLevel))
return fmt.Errorf("Unsupported log level: %s", c.LogLevel)
}
filter.MinLevel = logutils.LogLevel(c.LogLevel)
log.Printf("Setting log level to %v", c.LogLevel)
Expand Down

0 comments on commit 4c1aeaf

Please sign in to comment.