From c6860b4a3a2cc574ef19b8204ee36d2f9ddb45e8 Mon Sep 17 00:00:00 2001 From: mstar Date: Mon, 30 Dec 2024 14:44:11 +0100 Subject: [PATCH] Fix wrong var name --- other/zerolog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {