DEV: Log more information for user json response
Why this change? Currently we are only logging the `Faraday::Response` object which is not very useful because it doesn't show the response status code.
This commit is contained in:
parent
f7608a6d5b
commit
6e3b0b62ff
|
@ -231,7 +231,7 @@ class ::OAuth2BasicAuthenticator < Auth::ManagedAuthenticator
|
|||
headers = { "Authorization" => bearer_token, "Accept" => "application/json" }
|
||||
user_json_response = connection.run_request(user_json_method, user_json_url, nil, headers)
|
||||
|
||||
log("user_json_response: #{user_json_response.inspect}")
|
||||
log("user_json_response: (#{user_json_response.status}) #{user_json_response.inspect}")
|
||||
|
||||
if user_json_response.status == 200
|
||||
user_json = JSON.parse(user_json_response.body)
|
||||
|
|
Loading…
Reference in New Issue