@@ -391,7 +391,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
391
391
if (removedVariationId != null ) {
392
392
Variation removedVariation = experiment .getVariationIdToVariationMap ().get (removedVariationId );
393
393
if (removedVariation != null ) {
394
- logger .debug ("Variation mapped to experiment \" %s \" has been removed for user \" %s \" " , experiment .getKey (), userId );
394
+ logger .debug ("Variation mapped to experiment \" {} \" has been removed for user \" {} \" " , experiment .getKey (), userId );
395
395
}
396
396
else {
397
397
logger .debug ("Removed forced variation that did not exist in experiment" );
@@ -404,7 +404,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
404
404
}
405
405
else {
406
406
String previous = experimentToVariation .put (experiment .getId (), variation .getId ());
407
- logger .debug ("Set variation \" %s \" for experiment \" %s \" and user \" %s \" in the forced variation map." ,
407
+ logger .debug ("Set variation \" {} \" for experiment \" {} \" and user \" {} \" in the forced variation map." ,
408
408
variation .getKey (), experiment .getKey (), userId );
409
409
if (previous != null ) {
410
410
Variation previousVariation = experiment .getVariationIdToVariationMap ().get (previous );
@@ -445,20 +445,20 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
445
445
if (experimentToVariation != null ) {
446
446
Experiment experiment = getExperimentKeyMapping ().get (experimentKey );
447
447
if (experiment == null ) {
448
- logger .debug ("No experiment \" %s \" mapped to user \" %s \" in the forced variation map " , experimentKey , userId );
448
+ logger .debug ("No experiment \" {} \" mapped to user \" {} \" in the forced variation map " , experimentKey , userId );
449
449
return null ;
450
450
}
451
451
String variationId = experimentToVariation .get (experiment .getId ());
452
452
if (variationId != null ) {
453
453
Variation variation = experiment .getVariationIdToVariationMap ().get (variationId );
454
454
if (variation != null ) {
455
- logger .debug ("Variation \" %s \" is mapped to experiment \" %s \" and user \" %s \" in the forced variation map" ,
455
+ logger .debug ("Variation \" {} \" is mapped to experiment \" {} \" and user \" {} \" in the forced variation map" ,
456
456
variation .getKey (), experimentKey , userId );
457
457
return variation ;
458
458
}
459
459
}
460
460
else {
461
- logger .debug ("No variation for experiment \" %s \" mapped to user \" %s \" in the forced variation map " , experimentKey , userId );
461
+ logger .debug ("No variation for experiment \" {} \" mapped to user \" {} \" in the forced variation map " , experimentKey , userId );
462
462
}
463
463
}
464
464
return null ;
0 commit comments