Skip to content

Commit

Permalink
fix: set flag name in resolve debugger link (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl authored Dec 12, 2024
1 parent 8610df8 commit 8941632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/confidence/confidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ func (e Confidence) ResolveFlag(ctx context.Context, flag string, defaultValue i
return processResolveError(err, defaultValue)
}
key := url.QueryEscape(e.Config.APIKey)
flagEncoded := url.QueryEscape(flag)
flagEncoded := url.QueryEscape(flagName)
json, err := json.Marshal(e.GetContext())
if err == nil {
jsonContextEncoded := url.QueryEscape(string(json))
e.Logger.Debug("See resolves for " + flag + " in Confidence: https://app.confidence.spotify.com/flags/resolver-test?client-key=" + key + "&flag=flags/" + flagEncoded + "&context=" + jsonContextEncoded)
e.Logger.Debug("See resolves for " + flagName + " in Confidence: https://app.confidence.spotify.com/flags/resolver-test?client-key=" + key + "&flag=flags/" + flagEncoded + "&context=" + jsonContextEncoded)
}
if len(resp.ResolvedFlags) == 0 {
slog.Debug("Flag not found", "flag", flag)
Expand Down

0 comments on commit 8941632

Please sign in to comment.