Skip to content

Commit

Permalink
shifted opa engine warning message to debug log level (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devang Gaur committed May 20, 2021
1 parent 0c3c547 commit 696481d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/policy/opa/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (e *Engine) Evaluate(engineInput policy.EngineInput) (policy.EngineOutput,
// Execute the prepared query.
rs, err := e.regoDataMap[k].PreparedQuery.Eval(e.context, rego.EvalInput(engineInput.InputData))
if err != nil {
zap.S().Warn("failed to run prepared query", zap.Error(err), zap.String("rule", "'"+k+"'"), zap.String("file", e.regoDataMap[k].Metadata.File))
zap.S().Debug("failed to run prepared query", zap.Error(err), zap.String("rule", "'"+k+"'"), zap.String("file", e.regoDataMap[k].Metadata.File))
continue
}

Expand Down

0 comments on commit 696481d

Please sign in to comment.