Skip to content

Commit 87894b3

Browse files
committed
fixed a log message
1 parent dd4add4 commit 87894b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/optimizely/decision_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def get_saved_variation_id(project_config, experiment_id, user_profile)
425425
variation_id = decision[:variation_id]
426426
return variation_id, nil if project_config.variation_id_exists?(experiment_id, variation_id)
427427

428-
message = "User '#{user_profile['user_id']}' was previously bucketed into variation ID '#{variation_id}' for experiment '#{experiment_id}', but no matching variation was found. Re-bucketing user."
428+
message = "User '#{user_profile[:user_id]}' was previously bucketed into variation ID '#{variation_id}' for experiment '#{experiment_id}', but no matching variation was found. Re-bucketing user."
429429
@logger.log(Logger::INFO, message)
430430

431431
[nil, message]

spec/decision_service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
variation_received, reasons = decision_service.get_variation(config, 'test_experiment', 'test_user')
381381
expect(variation_received).to eq('111128')
382382
expect(reasons).to eq([
383-
"User '' was previously bucketed into variation ID '111111' for experiment '111127', but no matching variation was found. Re-bucketing user.",
383+
"User 'test_user' was previously bucketed into variation ID '111111' for experiment '111127', but no matching variation was found. Re-bucketing user.",
384384
"Audiences for experiment 'test_experiment' collectively evaluated to TRUE.",
385385
"User 'test_user' is in variation 'control' of experiment 'test_experiment'."
386386
])

0 commit comments

Comments
 (0)