From 2b089a9aa458af31fda9429b8529ad7acf3000b5 Mon Sep 17 00:00:00 2001 From: Paul Lorenz Date: Wed, 17 Apr 2024 16:57:20 -0400 Subject: [PATCH] Move a few info logs to debug --- edge-apis/clients.go | 2 +- edge-apis/pool.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/edge-apis/clients.go b/edge-apis/clients.go index b7c01349..446d3f5f 100644 --- a/edge-apis/clients.go +++ b/edge-apis/clients.go @@ -176,7 +176,7 @@ func (self *BaseClient[A]) ProcessControllers(authEnabledApi AuthEnabledApi) { } if list == nil || len(*list) <= 1 { - pfxlog.Logger().Info("no additional controllers reported, continuing with 1 default configured controller") + pfxlog.Logger().Debug("no additional controllers reported, continuing with 1 default configured controller") return } diff --git a/edge-apis/pool.go b/edge-apis/pool.go index d40a4ecc..092aa4ac 100644 --- a/edge-apis/pool.go +++ b/edge-apis/pool.go @@ -123,7 +123,7 @@ func NewClientTransportPoolRandom() *ClientTransportPoolRandom { } func (c *ClientTransportPoolRandom) SetActiveTransport(transport *ApiClientTransport) { - pfxlog.Logger().WithField("key", transport.ApiUrl.String()).Info("setting active controller") + pfxlog.Logger().WithField("key", transport.ApiUrl.String()).Debug("setting active controller") c.current.Store(transport) } @@ -181,7 +181,7 @@ func (c *ClientTransportPoolRandom) TryTransportForF(cb func(*ApiClientTransport if err == nil { return result, err } - + if !errorIndicatesControllerSwap(err) { pfxlog.Logger().WithError(err).Debugf("determined that error (%T) does not indicate controller swap, returning error", err) return result, err