From 3cc553404595a3de5f93c9f1f6b091cbfe175c07 Mon Sep 17 00:00:00 2001 From: lenny Date: Tue, 6 Apr 2021 15:59:54 -0700 Subject: [PATCH] fix: Changes per PR comments Signed-off-by: lenny --- bootstrap/config/config.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bootstrap/config/config.go b/bootstrap/config/config.go index e90df31e..f7209ebf 100644 --- a/bootstrap/config/config.go +++ b/bootstrap/config/config.go @@ -154,6 +154,8 @@ func (cp *Processor) Process( } cp.lc.Infof("Using Config Provider access token of length %d", len(accessToken)) + } else { + cp.lc.Info("Not configured to use Config Provider access token") } configClient, err := cp.createProviderClient(serviceKey, configStem, accessToken, configProviderInfo.ServiceConfig()) @@ -310,11 +312,6 @@ func (cp *Processor) ListenForCustomConfigChanges( cp.lc.Error(ex.Error()) case raw := <-updateStream: - //if ok := configToWatch.UpdateWritableFromRaw(raw); !ok { - // cp.lc.Error("unable to update custom writable configuration from Configuration Provider") - // continue - //} - cp.lc.Infof("Updated custom configuration '%s' has been received from the Configuration Provider", sectionName) changedCallback(raw) } @@ -494,5 +491,5 @@ func (cp *Processor) listenForChanges(serviceConfig interfaces.Configuration, co // logConfigInfo logs the config info message with number over overrides that occurred. func (cp *Processor) logConfigInfo(message string, overrideCount int) { - cp.lc.Info(fmt.Sprintf("%s (%d envVars overrides applied)", message, overrideCount)) + cp.lc.Infof("%s (%d envVars overrides applied)", message, overrideCount) }