Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Raajheer1 committed Oct 5, 2024
1 parent d8d5948 commit 950a2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/v3/user/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func GetDiscordCallback(w http.ResponseWriter, r *http.Request) {

token, err := exchangeToken(r.Context(), oauth.DiscordOAuthConfig, r.URL.Query().Get("code"))
if err != nil {
log.WithError(err).Error("Error exchanging tokens with Discord.")
log.WithError(err).Errorf("Error exchanging tokens with Discord, used code: %s.", r.URL.Query().Get("code"))
utils.Render(w, r, utils.ErrInternalServer)
return
}
Expand Down

0 comments on commit 950a2d4

Please sign in to comment.