Skip to content

Commit

Permalink
Better logging provider response in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeon authored and p4u committed Oct 27, 2023
1 parent 30227db commit d1f4a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauthhandler/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (p *Provider) GetOAuthToken(code string, redirectURL string) (*OAuthToken,
}

if token.AccessToken == "" {
log.Warnw("token.AccessToken is empty")
log.Warnw("token.AccessToken is empty.", "body", string(body))
return nil, fmt.Errorf("token.AccessToken is empty")
}

Expand Down

0 comments on commit d1f4a44

Please sign in to comment.