Ignore RecordNotFound errors

This commit is contained in:
Georg Gadinger 2017-04-02 09:12:34 +02:00
parent 1922094f11
commit 5b7b680b01
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ Rollbar.configure do |config|
# #
# You can also specify a callable, which will be called with the exception instance. # You can also specify a callable, which will be called with the exception instance.
# config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' }) # config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' })
config.exception_level_filters.merge!(
'ActiveRecord::RecordNotFound' => 'ignore'
)
# Enable asynchronous reporting (uses girl_friday or Threading if girl_friday # Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
# is not installed) # is not installed)