Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/puma/error_handler.rb')
-rw-r--r--lib/gitlab/puma/error_handler.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/gitlab/puma/error_handler.rb b/lib/gitlab/puma/error_handler.rb
index 4efc4866431..9eabe0731e2 100644
--- a/lib/gitlab/puma/error_handler.rb
+++ b/lib/gitlab/puma/error_handler.rb
@@ -18,10 +18,11 @@ module Gitlab
# https://github.com/puma/puma/pull/3094
status_code ||= 500
- if Raven.configuration.capture_allowed?
- Raven.capture_exception(ex, tags: { handler: 'puma_low_level' },
- extra: { puma_env: env, status_code: status_code })
- end
+ Gitlab::ErrorTracking.track_exception(
+ ex,
+ { puma_env: env, status_code: status_code },
+ { handler: 'puma_low_level' }
+ )
# note the below is just a Rack response
[status_code, {}, message]