1313require "ldclient-rb/impl/flag_tracker"
1414require "ldclient-rb/impl/migrations/tracker"
1515require "ldclient-rb/impl/store_client_wrapper"
16+ require "ldclient-rb/impl/util"
1617require "ldclient-rb/events"
1718require "ldclient-rb/in_memory_store"
1819require "concurrent"
@@ -617,7 +618,7 @@ def all_flags_state(context, options={})
617618 begin
618619 features = @store . all ( FEATURES )
619620 rescue => exn
620- Util . log_exception ( @config . logger , "Unable to read flags for all_flags_state" , exn )
621+ Impl :: Util . log_exception ( @config . logger , "Unable to read flags for all_flags_state" , exn )
621622 return FeatureFlagsState . new ( false )
622623 end
623624
@@ -634,7 +635,7 @@ def all_flags_state(context, options={})
634635 detail = eval_result . detail
635636 rescue => exn
636637 detail = EvaluationDetail . new ( nil , nil , EvaluationReason ::error ( EvaluationReason ::ERROR_EXCEPTION ) )
637- Util . log_exception ( @config . logger , "Error evaluating flag \" #{ k } \" in all_flags_state" , exn )
638+ Impl :: Util . log_exception ( @config . logger , "Error evaluating flag \" #{ k } \" in all_flags_state" , exn )
638639 end
639640
640641 requires_experiment_data = experiment? ( f , detail . reason )
@@ -804,7 +805,7 @@ def evaluate_internal(key, context, default, with_reasons)
804805 record_flag_eval ( feature , context , detail , default , with_reasons )
805806 [ detail , feature , nil ]
806807 rescue => exn
807- Util . log_exception ( @config . logger , "Error evaluating feature flag \" #{ key } \" " , exn )
808+ Impl :: Util . log_exception ( @config . logger , "Error evaluating feature flag \" #{ key } \" " , exn )
808809 detail = Evaluator . error_result ( EvaluationReason ::ERROR_EXCEPTION , default )
809810 record_flag_eval_error ( feature , context , default , detail . reason , with_reasons )
810811 [ detail , feature , exn . to_s ]
0 commit comments