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 'config/puma.rb.example')
-rw-r--r--config/puma.rb.example9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/puma.rb.example b/config/puma.rb.example
index f659529f23f..c70baf6570e 100644
--- a/config/puma.rb.example
+++ b/config/puma.rb.example
@@ -82,3 +82,12 @@ json_formatter = Gitlab::PumaLogging::JSONFormatter.new
log_formatter do |str|
json_formatter.call(str)
end
+
+lowlevel_error_handler do |ex, env|
+ if Raven.configuration.capture_allowed?
+ Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env })
+ end
+
+ # note the below is just a Rack response
+ [500, {}, ["An error has occurred and reported in the system's low-level error handler."]]
+end