diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /app/services/jira | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) | |
download | gitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'app/services/jira')
-rw-r--r-- | app/services/jira/requests/base.rb | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/app/services/jira/requests/base.rb b/app/services/jira/requests/base.rb index 3e15d47e8af..8e8511e5180 100644 --- a/app/services/jira/requests/base.rb +++ b/app/services/jira/requests/base.rb @@ -3,8 +3,6 @@ module Jira module Requests class Base - include ProjectServicesLoggable - JIRA_API_VERSION = 2 # Limit the size of the JSON error message we will attempt to parse, as the JSON is external input. JIRA_ERROR_JSON_SIZE_LIMIT = 5_000 @@ -54,17 +52,13 @@ module Jira def request response = client.get(url) build_service_response(response) - rescue *ALL_ERRORS => e - log_error('Error sending message', - client_url: client.options[:site], - error: { - exception_class: e.class.name, - exception_message: e.message, - exception_backtrace: Gitlab::BacktraceCleaner.clean_backtrace(e.backtrace) - } + rescue *ALL_ERRORS => error + jira_integration.log_exception(error, + message: 'Error sending message', + client_url: client.options[:site] ) - ServiceResponse.error(message: error_message(e)) + ServiceResponse.error(message: error_message(error)) end def auth_docs_link_start |