Skip to content

Commit 83a9f4c

Browse files
committed
log a skipped exception rule
1 parent 756ed10 commit 83a9f4c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/evaluator/opa_evaluator.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ func (o *opaEvaluator) evaluateRule(ctx context.Context, input any, namespace st
320320

321321
for _, rr := range ruleResults {
322322
if len(result.exceptions) > 0 {
323+
// log the exception query as skipped
324+
log.Debugf("exception query %s skipped", exceptionQuery)
323325
continue
324326
}
325327
if rr.Message == "" {

0 commit comments

Comments
 (0)