From 83a26ec080978d62e2f9074bbbcf3082047085f0 Mon Sep 17 00:00:00 2001 From: ralphg6 Date: Fri, 7 Jun 2024 15:02:58 -0300 Subject: [PATCH] fix: adjust some log levels --- services/rulles.go | 4 ++-- types/context.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/rulles.go b/services/rulles.go index 1af4b4e..36e2b22 100644 --- a/services/rulles.go +++ b/services/rulles.go @@ -237,11 +237,11 @@ func (s Eval) GetKnowledgeBase(ctx context.Context, knowledgeBaseName string, ve // If the version isn't expired and there are rules, we must retrieve the version if !expired && len(base.RuleEntries) > 0 { - log.Trace("Eval with cached Knowledge") + log.Debug("Eval with cached Knowledge") return base, nil } - log.Trace("Start load Knowledge") + log.Debug("Start load Knowledge") loadWg.Add(1) defer loadWg.Done() diff --git a/types/context.go b/types/context.go index 658f24c..223d81a 100644 --- a/types/context.go +++ b/types/context.go @@ -288,7 +288,7 @@ func (c *Context) resolveImpl(resolver string, param string) interface{} { Load: []string{param}, } - log.Debugf("Resolving with '%s': %v", url, input) + log.Tracef("Resolving with '%s': %v", url, input) var buf bytes.Buffer @@ -297,7 +297,7 @@ func (c *Context) resolveImpl(resolver string, param string) interface{} { log.Panic("error on encode input") } - log.Debugf("Resolving with '%s' decoded: %v", url, buf.String()) + log.Tracef("Resolving with '%s' decoded: %v", url, buf.String()) ctx := c.RawContext var req *http.Request @@ -329,7 +329,7 @@ func (c *Context) resolveImpl(resolver string, param string) interface{} { log.Panic("error on read the body") } - log.Debugf("Resolving with '%s': %v > %s", url, input, string(data)) + log.Tracef("Resolving with '%s': %v > %s", url, input, string(data)) output := resolveOutputV1{} err = json.Unmarshal(data, &output)