From eea914943ebbb9730f83b584b181cef8345b5f6c Mon Sep 17 00:00:00 2001 From: Piotr Konopka Date: Thu, 12 Dec 2024 15:37:11 +0100 Subject: [PATCH] OCTRL-900 [core] demote getConfig warnings containing debug information --- configuration/template/stackutil.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configuration/template/stackutil.go b/configuration/template/stackutil.go index 1e58fb69..44ce4a29 100644 --- a/configuration/template/stackutil.go +++ b/configuration/template/stackutil.go @@ -27,6 +27,7 @@ package template import ( "encoding/json" "fmt" + "github.com/AliceO2Group/Control/common/logger/infologger" texttemplate "text/template" "time" @@ -51,8 +52,8 @@ func getConfigLegacy(confSvc ConfigurationService, varStack map[string]string, p fields := Fields{WrapPointer(&payload)} err = fields.Execute(confSvc, query.Path(), varStack, nil, nil, make(map[string]texttemplate.Template), nil) - log.Warn(varStack) - log.Warn(payload) + log.WithField("level", infologger.IL_Devel).Debug(varStack) + log.WithField("level", infologger.IL_Devel).Debug(payload) return payload } @@ -68,8 +69,8 @@ func getConfig(confSvc ConfigurationService, varStack map[string]string, path st return fmt.Sprintf("{\"error\":\"%s\"}", err.Error()) } - log.Warn(varStack) - log.Warn(payload) + log.WithField("level", infologger.IL_Devel).Debug(varStack) + log.WithField("level", infologger.IL_Devel).Debug(payload) return payload }