Skip to content

Commit

Permalink
OCTRL-900 [core] demote getConfig warnings containing debug information
Browse files Browse the repository at this point in the history
knopers8 authored and justonedev1 committed Dec 13, 2024
1 parent 6a5ce93 commit eea9149
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions configuration/template/stackutil.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit eea9149

Please sign in to comment.