diff --git a/other/zerolog.go b/other/zerolog.go index 3036a15..b380889 100644 --- a/other/zerolog.go +++ b/other/zerolog.go @@ -41,7 +41,7 @@ func ConfigureLoggingFromCliArgs() { } func configLevel() { - switch strings.ToLower(*&cliFlagLogLevel) { + switch strings.ToLower(cliFlagLogLevel) { case "trace": zerolog.SetGlobalLevel(zerolog.TraceLevel) case "debug": @@ -57,7 +57,7 @@ func configLevel() { default: zerolog.SetGlobalLevel(zerolog.InfoLevel) } - log.Info().Str("new-level", *flagLogLevel).Msg("New logging level set") + log.Info().Str("new-level", cliFlagLogLevel).Msg("New logging level set") } func configOutputs() {