Report everything to sentry, not airbrake
This commit is contained in:
parent
a9fa7b6624
commit
09376c83e5
|
@ -54,12 +54,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_500(e)
|
def render_500(e)
|
||||||
#check for exceptions Airbrake ignores by default and exclude them from manual Airbrake notification
|
Raven.capture_exception(e)
|
||||||
if Rails.env.production? && !AIRBRAKE_IGNORE.include?(e.class)
|
|
||||||
notify_airbrake(e)
|
|
||||||
end
|
|
||||||
Rails.logger.error e.message
|
|
||||||
Rails.logger.error e.backtrace.inspect
|
|
||||||
render_error 500
|
render_error 500
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue