diff options
Diffstat (limited to 'app/services/jira/requests')
-rw-r--r-- | app/services/jira/requests/base.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/jira/requests/base.rb b/app/services/jira/requests/base.rb index 7c6db372257..4ed8df0f235 100644 --- a/app/services/jira/requests/base.rb +++ b/app/services/jira/requests/base.rb @@ -40,7 +40,12 @@ module Jira build_service_response(response) rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, Errno::ECONNREFUSED, URI::InvalidURIError, JIRA::HTTPError, OpenSSL::SSL::SSLError => error error_message = "Jira request error: #{error.message}" - log_error("Error sending message", client_url: client.options[:site], error: error_message) + log_error("Error sending message", client_url: client.options[:site], + error: { + exception_class: error.class.name, + exception_message: error.message, + exception_backtrace: Gitlab::BacktraceCleaner.clean_backtrace(error.backtrace) + }) ServiceResponse.error(message: error_message) end |