Merge pull request #5052 from consul/tenant_not_found_exception

Do not track `Apartment::TenantNotFound` exceptions through `Airbrake`
This commit is contained in:
Senén Rodero
2022-12-20 17:20:47 +01:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ Airbrake.configure do |config|
end
Airbrake.add_filter do |notice|
ignorables = %w[ActiveRecord::RecordNotFound]
ignorables = %w[ActiveRecord::RecordNotFound Apartment::TenantNotFound]
notice.ignore! if ignorables.include? notice[:errors].first[:type]
end