From dc0a1dcd871a0526abf9812bad859eb33a180daa Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 6 Oct 2020 20:41:19 +0100 Subject: [PATCH] Fix LogLevel parsing in config --- pkg/server/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/config.go b/pkg/server/config.go index f807ae8..1ab5498 100644 --- a/pkg/server/config.go +++ b/pkg/server/config.go @@ -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 }