From 16b7a368a955276643cf942463c386c2ec98ddad Mon Sep 17 00:00:00 2001 From: Forrest <6546409+frrist@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:47:28 -0700 Subject: [PATCH] fix: remove warning flag causing noise (#4582) This change was introduced in #4580. This PR reverts the unintended warn log lines addition. Co-authored-by: frrist --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index cae3f085c0..ba3649f40a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -144,9 +144,9 @@ func New(opts ...Option) (*Config, error) { for _, flag := range flags { // only if the flag has been set do we want to bind to it, this allows multiple flags // to bind to the same config key. - log.Warn().Msgf("Binding flag %+v to config key %q", flag, name) if flag == nil { log.Error().Msgf("flag %q is nil", name) + continue } if flag.Changed { switch name {