Skip to content

Commit a4595a5

Browse files
authored
[FSSDK-10397] remove redundant info log & replace info log with debug log inside loop
1 parent de8cb88 commit a4595a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/handlers/decide.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func Decide(w http.ResponseWriter, r *http.Request) {
107107
key := keys[0]
108108
logger.Debug().Str("featureKey", key).Msg("fetching feature decision")
109109
d := optimizelyUserContext.Decide(key, decideOptions)
110-
logger.Info().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
111110
decideOut := DecideOut{d, d.Variables.ToMap()}
112111
render.JSON(w, r, decideOut)
113112
return
@@ -120,7 +119,7 @@ func Decide(w http.ResponseWriter, r *http.Request) {
120119
for _, d := range decides {
121120
decideOut := DecideOut{d, d.Variables.ToMap()}
122121
decideOuts = append(decideOuts, decideOut)
123-
logger.Info().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
122+
logger.Debug().Msgf("Feature %q is enabled for user %s? %t", d.FlagKey, d.UserContext.UserID, d.Enabled)
124123
}
125124
render.JSON(w, r, decideOuts)
126125
}

0 commit comments

Comments
 (0)