diff --git a/pkg/cfg/logging.go b/pkg/cfg/logging.go index 9005e565..902eac40 100644 --- a/pkg/cfg/logging.go +++ b/pkg/cfg/logging.go @@ -11,7 +11,6 @@ OR CONDITIONS OF ANY KIND, either express or implied. package cfg import ( - "fmt" "os" "strconv" @@ -106,7 +105,7 @@ func (logging) configure() { // then we weren't configured via command line, check the config file if !viper.IsSet(Branding.LCName + ".logLevel") { // then we weren't configured via the config file, set the default - Cfg.LogLevel = fmt.Sprintf("%s", Logging.DefaultLogLevel) + Cfg.LogLevel = Logging.DefaultLogLevel.String() } if Cfg.LogLevel != Logging.AtomicLogLevel.Level().String() {