Fix wrong var name
This commit is contained in:
parent
40d31bc53f
commit
c6860b4a3a
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue