@@ -311,7 +311,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
311
311
if (removedVariationId != null ) {
312
312
Variation removedVariation = experiment .getVariationIdToVariationMap ().get (removedVariationId );
313
313
if (removedVariation != null ) {
314
- logger .debug ("Variation mapped to experiment \" %s \" has been removed for user \" %s \" " , experiment .getKey (), userId );
314
+ logger .debug ("Variation mapped to experiment \" {} \" has been removed for user \" {} \" " , experiment .getKey (), userId );
315
315
}
316
316
else {
317
317
logger .debug ("Removed forced variation that did not exist in experiment" );
@@ -324,7 +324,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
324
324
}
325
325
else {
326
326
String previous = experimentToVariation .put (experiment .getId (), variation .getId ());
327
- logger .debug ("Set variation \" %s \" for experiment \" %s \" and user \" %s \" in the forced variation map." ,
327
+ logger .debug ("Set variation \" {} \" for experiment \" {} \" and user \" {} \" in the forced variation map." ,
328
328
variation .getKey (), experiment .getKey (), userId );
329
329
if (previous != null ) {
330
330
Variation previousVariation = experiment .getVariationIdToVariationMap ().get (previous );
@@ -365,20 +365,20 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
365
365
if (experimentToVariation != null ) {
366
366
Experiment experiment = getExperimentKeyMapping ().get (experimentKey );
367
367
if (experiment == null ) {
368
- logger .debug ("No experiment \" %s \" mapped to user \" %s \" in the forced variation map " , experimentKey , userId );
368
+ logger .debug ("No experiment \" {} \" mapped to user \" {} \" in the forced variation map " , experimentKey , userId );
369
369
return null ;
370
370
}
371
371
String variationId = experimentToVariation .get (experiment .getId ());
372
372
if (variationId != null ) {
373
373
Variation variation = experiment .getVariationIdToVariationMap ().get (variationId );
374
374
if (variation != null ) {
375
- logger .debug ("Variation \" %s \" is mapped to experiment \" %s \" and user \" %s \" in the forced variation map" ,
375
+ logger .debug ("Variation \" {} \" is mapped to experiment \" {} \" and user \" {} \" in the forced variation map" ,
376
376
variation .getKey (), experimentKey , userId );
377
377
return variation ;
378
378
}
379
379
}
380
380
else {
381
- logger .debug ("No variation for experiment \" %s \" mapped to user \" %s \" in the forced variation map " , experimentKey , userId );
381
+ logger .debug ("No variation for experiment \" {} \" mapped to user \" {} \" in the forced variation map " , experimentKey , userId );
382
382
}
383
383
}
384
384
return null ;
0 commit comments