Skip to content

Commit

Permalink
Update selfservice/strategy/oidc/error.go
Browse files Browse the repository at this point in the history
Co-authored-by: Patrik <zepatrik@users.noreply.github.com>
  • Loading branch information
aeneasr and zepatrik committed Jan 10, 2023
1 parent 02eadfd commit a588aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/strategy/oidc/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func logUpstreamError(l *logrusx.Logger, resp *http.Response) error {

body, err := io.ReadAll(resp.Body)
if err != nil {
body = []byte(err.Error())
l = l.WithError(err)
}

l.WithField("response_code", resp.StatusCode).WithField("response_body", string(body)).Error("The upstream OIDC provider returned a non 200 status code.")
Expand Down

0 comments on commit a588aa1

Please sign in to comment.