Skip to content

Commit

Permalink
refactor: 不再上报 puma 的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Oct 23, 2020
1 parent 18056f8 commit 56b543d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,3 @@
# activate_control_app 'unix:///var/run/pumactl.sock'
# activate_control_app 'unix:///var/run/pumactl.sock', { auth_token: '12345' }
# activate_control_app 'unix:///var/run/pumactl.sock', { no_token: true }

lowlevel_error_handler do |ex, env|
Raven.capture_exception(
ex,
message: ex.message,
extra: { puma: env },
transaction: 'Puma'
)

# note the below is just a Rack response
[500, { 'Content-Type' => 'application/json' }, ['{"message":"An error has occurred, and engineers have been informed. Please reload the page. If you continue to have problems, contact [email protected]"}']]
end

0 comments on commit 56b543d

Please sign in to comment.