Commit 0613aa98 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '198411-more-verbose-logging-in-jira-service' into 'master'

Add more detailed logging of errors in Jira service

See merge request gitlab-org/gitlab!25007
parents e078065e de2cf87b
......@@ -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