@@ -28,6 +28,7 @@ public class EvaluatorImp implements Evaluator {
2828 private final EvaluationContext _evaluationContext ;
2929 private final SplitCacheConsumer _splitCacheConsumer ;
3030 private final FallbackTreatmentCalculator _fallbackTreatmentCalculator ;
31+ private final String _evaluatorException = "Evaluator Exception" ;
3132
3233 public EvaluatorImp (SplitCacheConsumer splitCacheConsumer , SegmentCacheConsumer segmentCache ,
3334 RuleBasedSegmentCacheConsumer ruleBasedSegmentCacheConsumer ,
@@ -64,7 +65,7 @@ public Map<String, EvaluatorImp.TreatmentLabelAndChangeNumber> evaluateFeaturesB
6465 try {
6566 return evaluateFeatures (key , bucketingKey , flagSetsWithNames , attributes );
6667 } catch (Exception e ) {
67- _log .error ("Evaluator Exception" , e );
68+ _log .error (_evaluatorException , e );
6869 return createMapControl (flagSetsWithNames , io .split .engine .evaluator .Labels .EXCEPTION );
6970 }
7071 }
@@ -216,11 +217,11 @@ private TreatmentLabelAndChangeNumber evaluateParsedSplit(String matchingKey, St
216217 }
217218 return getTreatment (matchingKey , bucketingKey , parsedSplit , attributes );
218219 } catch (ChangeNumberExceptionWrapper e ) {
219- _log .error ("Evaluator Exception" , e .wrappedException ());
220+ _log .error (_evaluatorException , e .wrappedException ());
220221 FallbackTreatment fallbackTreatment = _fallbackTreatmentCalculator .resolve (featureName , Labels .EXCEPTION );
221222 return new TreatmentLabelAndChangeNumber (fallbackTreatment .getTreatment (), fallbackTreatment .getLabel (), e .changeNumber ());
222223 } catch (Exception e ) {
223- _log .error ("Evaluator Exception" , e );
224+ _log .error (_evaluatorException , e );
224225 FallbackTreatment fallbackTreatment = _fallbackTreatmentCalculator .resolve (featureName , Labels .EXCEPTION );
225226 return new TreatmentLabelAndChangeNumber (fallbackTreatment .getTreatment (), fallbackTreatment .getLabel ());
226227 }
0 commit comments