Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: adjust some log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Jun 7, 2024
1 parent 2b8d54e commit 83a26ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions services/rulles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions types/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 83a26ec

Please sign in to comment.