Skip to content

Commit

Permalink
Fix LogLevel parsing in config
Browse files Browse the repository at this point in the history
  • Loading branch information
devplayer0 committed Oct 6, 2020
1 parent 0f86e65 commit dc0a1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func base64ToBytesHookFunc() mapstructure.DecodeHookFunc {
// stringToLogLevelHookFunc returns a mapstructure.DecodeHookFunc which parses a logrus Level from a string
func stringToLogLevelHookFunc() mapstructure.DecodeHookFunc {
return func(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error) {
if f.Kind() != reflect.String || t.Kind() != reflect.TypeOf(log.InfoLevel).Kind() {
if f.Kind() != reflect.String || t != reflect.TypeOf(log.InfoLevel) {
return data, nil
}

Expand Down

0 comments on commit dc0a1dc

Please sign in to comment.