Skip to content

Commit

Permalink
Make logLevelFromName case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
desa committed Oct 9, 2017
1 parent 319773d commit 796084a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/diagnostic/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ func (s *Service) SetLogLevelFromName(lvl string) error {
func logLevelFromName(lvl string) Level {
var level Level
switch lvl {
case "INFO":
case "INFO", "info":
level = InfoLevel
case "ERROR":
case "ERROR", "error":
level = ErrorLevel
case "WARN":
case "WARN", "warn":
level = WarnLevel
case "DEBUG":
case "DEBUG", "debug":
level = DebugLevel
}

Expand Down

0 comments on commit 796084a

Please sign in to comment.