diff --git a/internal/log/options.go b/internal/log/options.go index 2bfde14fb6..459fd46a21 100644 --- a/internal/log/options.go +++ b/internal/log/options.go @@ -15,6 +15,9 @@ type Option func(s *settings) // The level defaults to the lowest level, trce. func SetLevel(level Level) Option { return func(s *settings) { + if level == DoNotChange { + return + } s.level = &level } }