From 56b543d52d0e3cd225cbc7f291767b52737dc1cd Mon Sep 17 00:00:00 2001 From: icyleaf Date: Fri, 23 Oct 2020 16:11:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=8D=E5=86=8D=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=20puma=20=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/puma.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index c94508e..9a4891a 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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 icyleaf.cn@gmail.com"}']] -end