Skip to content

Commit a03c267

Browse files
committed
Sync config v14.2.0 : Update puma.rb: upstream/66712
This is imported from upstream. See corresponding merge request: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66712
1 parent 2cf6170 commit a03c267

File tree

1 file changed

+9
-0
lines changed
  • assets/runtime/config/gitlabhq

1 file changed

+9
-0
lines changed

assets/runtime/config/gitlabhq/puma.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,12 @@
8585
log_formatter do |str|
8686
json_formatter.call(str)
8787
end
88+
89+
lowlevel_error_handler do |ex, env|
90+
if Raven.configuration.capture_allowed?
91+
Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env })
92+
end
93+
94+
# note the below is just a Rack response
95+
[500, {}, ["An error has occurred and reported in the system's low-level error handler."]]
96+
end

0 commit comments

Comments
 (0)