You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger.Log(LogLevel.DEBUG,string.Format(@"Variation ""{0}"" is mapped to experiment ""{1}"" and user ""{2}"" in the forced variation map",variationKey,experimentKey,userId));
192
+
Logger.Log(LogLevel.DEBUG,$@"Variation ""{variationKey}"" is mapped to experiment ""{experimentKey}"" and user ""{userId}"" in the forced variation map");
Logger.Log(LogLevel.DEBUG,string.Format(@"Set variation ""{0}"" for experiment ""{1}"" and user ""{2}"" in the forced variation map.",variationId,experimentId,userId));
245
+
Logger.Log(LogLevel.DEBUG,$@"Set variation ""{variationId}"" for experiment ""{experimentId}"" and user ""{userId}"" in the forced variation map.");
237
246
returntrue;
238
247
}
239
248
@@ -259,9 +268,9 @@ public Variation GetWhitelistedVariation(Experiment experiment, string userId)
259
268
:null;
260
269
261
270
if(forcedVariation!=null)
262
-
Logger.Log(LogLevel.INFO,string.Format("User \"{0}\" is forced in variation \"{1}\".",userId,forcedVariationKey));
271
+
Logger.Log(LogLevel.INFO,$"User \"{userId}\" is forced in variation \"{forcedVariationKey}\".");
263
272
else
264
-
Logger.Log(LogLevel.ERROR,string.Format("Variation \"{0}\" is not in the datafile. Not activating user \"{1}\".",forcedVariationKey,userId));
273
+
Logger.Log(LogLevel.ERROR,$"Variation \"{forcedVariationKey}\" is not in the datafile. Not activating user \"{userId}\".");
265
274
266
275
returnforcedVariation;
267
276
}
@@ -284,7 +293,7 @@ public Variation GetStoredVariation(Experiment experiment, UserProfile userProfi
284
293
285
294
if(decision==null)
286
295
{
287
-
Logger.Log(LogLevel.INFO,string.Format("No previously activated variation of experiment \"{0}\" for user \"{1}\" found in user profile.",experimentKey,userProfile.UserId));
296
+
Logger.Log(LogLevel.INFO,$"No previously activated variation of experiment \"{experimentKey}\" for user \"{userProfile.UserId}\" found in user profile.");
288
297
returnnull;
289
298
}
290
299
@@ -298,13 +307,11 @@ public Variation GetStoredVariation(Experiment experiment, UserProfile userProfi
298
307
299
308
if(savedVariation==null)
300
309
{
301
-
Logger.Log(LogLevel.INFO,string.Format("User \"{0}\" was previously bucketed into variation with ID \"{1}\" for experiment \"{2}\", but no matching variation was found for that user. We will re-bucket the user.",
302
-
userProfile.UserId,variationId,experimentId));
310
+
Logger.Log(LogLevel.INFO,$"User \"{userProfile.UserId}\" was previously bucketed into variation with ID \"{variationId}\" for experiment \"{experimentId}\", but no matching variation was found for that user. We will re-bucket the user.");
303
311
returnnull;
304
312
}
305
313
306
-
Logger.Log(LogLevel.INFO,string.Format("Returning previously activated variation \"{0}\" of experiment \"{1}\" for user \"{2}\" from user profile.",
Logger.Log(LogLevel.INFO,$"Returning previously activated variation \"{savedVariation.Key}\" of experiment \"{experimentKey}\" for user \"{userProfile.UserId}\" from user profile.");
0 commit comments