@o3r/rules-engine 13.0.2 → 13.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1858,7 +1858,8 @@ class RulesetExecutor {
1858
1858
  output.evaluation = handleRuleEvaluationDebug(rule, this.ruleset.name, output.actions, output.error, runtimeFactValues, factValues, oldFactValues, inputFacts);
1859
1859
  }
1860
1860
  else if (output.error) {
1861
- this.rulesEngine.logger?.error(`Error while evaluating rule ID: ${rule.id}`, output.error);
1861
+ const errorToLog = output.error instanceof Error || typeof output.error === 'string' ? output.error.toString() : JSON.stringify(output.error);
1862
+ this.rulesEngine.logger?.error(`Error while evaluating rule ID: ${rule.id}; message: ${errorToLog}`);
1862
1863
  this.rulesEngine.logger?.warn(`Skipping rule ${rule.name}, and the associated ruleset`);
1863
1864
  }
1864
1865
  return output;