Fix wrong var name

This commit is contained in:
Melody Becker 2024-12-30 14:44:11 +01:00
parent 40d31bc53f
commit c6860b4a3a

View file

@ -41,7 +41,7 @@ func ConfigureLoggingFromCliArgs() {
} }
func configLevel() { func configLevel() {
switch strings.ToLower(*&cliFlagLogLevel) { switch strings.ToLower(cliFlagLogLevel) {
case "trace": case "trace":
zerolog.SetGlobalLevel(zerolog.TraceLevel) zerolog.SetGlobalLevel(zerolog.TraceLevel)
case "debug": case "debug":
@ -57,7 +57,7 @@ func configLevel() {
default: default:
zerolog.SetGlobalLevel(zerolog.InfoLevel) 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() { func configOutputs() {