diff --git a/config/initializers/errbit.rb b/config/initializers/errbit.rb index 3eb211bcc..bb22b04ba 100644 --- a/config/initializers/errbit.rb +++ b/config/initializers/errbit.rb @@ -8,6 +8,11 @@ Airbrake.configure do |config| config.ignore_environments += [Rails.env] if Rails.application.secrets.errbit_project_id.blank? end +Airbrake.add_filter do |notice| + ignorables = %w[ActiveRecord::RecordNotFound] + notice.ignore! if ignorables.include? notice[:errors].first[:type] +end + if Rails.application.secrets.errbit_self_hosted_ssl.present? # Patch from: https://mensfeld.pl/2016/05/setting-up-errbit-reporter-airbrake-v5-gem-to-work-with-self-signed-https-certificate/ module Patches