Skip to content

Commit

Permalink
document unset, merge warn/warning
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdoxsey committed Jul 17, 2023
1 parent 1f787d4 commit 09574e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/log_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type LogLevel string

// Known log levels.
const (
LogLevelUnset LogLevel = ""
LogLevelUnset LogLevel = "" // defaults to info
LogLevelTrace LogLevel = "trace"
LogLevelDebug LogLevel = "debug"
LogLevelInfo LogLevel = "info"
Expand Down Expand Up @@ -93,10 +93,8 @@ func (lvl LogLevel) ToEnvoy() string {
return "debug"
case LogLevelInfo, LogLevelUnset:
return "info"
case LogLevelWarn:
case LogLevelWarn, LogLevelWarning:
return "warn"
case LogLevelWarning:
return "warning"
case LogLevelError:
return "error"
case LogLevelCritical, LogLevelFatal, LogLevelPanic:
Expand Down

0 comments on commit 09574e0

Please sign in to comment.