Skip to content

Commit

Permalink
Merge branch 'master' into pulak/ci-test
Browse files Browse the repository at this point in the history
  • Loading branch information
pulak-opti authored Aug 23, 2024
2 parents 06b226a + a4595a5 commit 9724ed2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/handlers/decide.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func Decide(w http.ResponseWriter, r *http.Request) {
key := keys[0]
logger.Debug().Str("featureKey", key).Msg("fetching feature decision")
d := optimizelyUserContext.Decide(key, decideOptions)
logger.Info().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
decideOut := DecideOut{d, d.Variables.ToMap()}
render.JSON(w, r, decideOut)
return
Expand All @@ -120,7 +119,7 @@ func Decide(w http.ResponseWriter, r *http.Request) {
for _, d := range decides {
decideOut := DecideOut{d, d.Variables.ToMap()}
decideOuts = append(decideOuts, decideOut)
logger.Info().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
logger.Debug().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
}
render.JSON(w, r, decideOuts)
}
Expand Down

0 comments on commit 9724ed2

Please sign in to comment.