Commit de2cf87b authored by Justin Ho's avatar Justin Ho

Add extra logging to Jira::HTTPClient

- Change to use GitLab error tracking
- Add full Jira response to logging
parent 74f92cef
......@@ -12,7 +12,12 @@ module Gitlab
def request(*args)
result = make_request(*args)
raise JIRA::HTTPError.new(result.response) unless result.response.is_a?(Net::HTTPSuccess)
unless result.response.is_a?(Net::HTTPSuccess)
Gitlab::ErrorTracking.track_and_raise_exception(
JIRA::HTTPError.new(result.response),
response_body: result.body
)
end
result
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment