Skip to content

Commit e152edb

Browse files
authored
[FSSDK-10397] replace info log with debug log for Decision flow (#390)
1 parent fddc701 commit e152edb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/client/client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (o *OptimizelyClient) decide(userContext OptimizelyUserContext, key string,
229229

230230
if o.notificationCenter != nil {
231231
decisionNotification := decision.FlagNotification(key, variationKey, ruleKey, flagEnabled, eventSent, usrContext, variableMap, reasonsToReport)
232-
o.logger.Info(fmt.Sprintf(`Feature %q is enabled for user %q? %v`, key, usrContext.ID, flagEnabled))
232+
o.logger.Debug(fmt.Sprintf(`Feature %q is enabled for user %q? %v`, key, usrContext.ID, flagEnabled))
233233
if e := o.notificationCenter.Send(notification.Decision, *decisionNotification); e != nil {
234234
o.logger.Warning("Problem with sending notification")
235235
}
@@ -481,9 +481,9 @@ func (o *OptimizelyClient) IsFeatureEnabled(featureKey string, userContext entit
481481
}
482482

483483
if result {
484-
o.logger.Info(fmt.Sprintf(`Feature %q is enabled for user %q.`, featureKey, userContext.ID))
484+
o.logger.Debug(fmt.Sprintf(`Feature %q is enabled for user %q.`, featureKey, userContext.ID))
485485
} else {
486-
o.logger.Info(fmt.Sprintf(`Feature %q is not enabled for user %q.`, featureKey, userContext.ID))
486+
o.logger.Debug(fmt.Sprintf(`Feature %q is not enabled for user %q.`, featureKey, userContext.ID))
487487
}
488488

489489
if o.notificationCenter != nil {
@@ -1087,9 +1087,9 @@ func (o *OptimizelyClient) getExperimentDecision(experimentKey string, userConte
10871087

10881088
if experimentDecision.Variation != nil {
10891089
result := experimentDecision.Variation.Key
1090-
o.logger.Info(fmt.Sprintf(`User %q is bucketed into variation %q of experiment %q.`, userContext.ID, result, experimentKey))
1090+
o.logger.Debug(fmt.Sprintf(`User %q is bucketed into variation %q of experiment %q.`, userContext.ID, result, experimentKey))
10911091
} else {
1092-
o.logger.Info(fmt.Sprintf(`User %q is not bucketed into any variation for experiment %q: %s.`, userContext.ID, experimentKey, experimentDecision.Reason))
1092+
o.logger.Debug(fmt.Sprintf(`User %q is not bucketed into any variation for experiment %q: %s.`, userContext.ID, experimentKey, experimentDecision.Reason))
10931093
}
10941094

10951095
return decisionContext, experimentDecision, err

0 commit comments

Comments
 (0)