Skip to content

Commit

Permalink
engine: Make ErrEvaluationSkipSilently not so silent
Browse files Browse the repository at this point in the history
While we don't want to surface this error up to the user, we do want to know that it happened. So this that the exception happened so we have some visibility.
  • Loading branch information
JAORMX committed Aug 30, 2023
1 parent 2eb94b9 commit c1185eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/engine/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ func (e *Executor) createOrUpdateEvalStatus(
}

if errors.Is(params.evalErr, evalerrors.ErrEvaluationSkipSilently) {
log.Printf("silent skip of rule %d for policy %d", params.ruleTypeID, params.policyID)
return nil
}

Expand Down

0 comments on commit c1185eb

Please sign in to comment.