Report everything to sentry, not airbrake

This commit is contained in:
Wedge 2019-02-05 14:45:38 +03:00
parent a9fa7b6624
commit 09376c83e5
1 changed files with 1 additions and 6 deletions

View File

@ -54,12 +54,7 @@ class ApplicationController < ActionController::Base
end
def render_500(e)
#check for exceptions Airbrake ignores by default and exclude them from manual Airbrake notification
if Rails.env.production? && !AIRBRAKE_IGNORE.include?(e.class)
notify_airbrake(e)
end
Rails.logger.error e.message
Rails.logger.error e.backtrace.inspect
Raven.capture_exception(e)
render_error 500
end