Ignore ActiveRecord::QueryCanceled errors in Honeybadger (#5165) [deploy]

This commit is contained in:
Molly Struve 2019-12-18 13:09:49 -06:00 committed by GitHub
parent b5614a34e2
commit 1156aff711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,11 @@
Honeybadger.configure do |config|
config.api_key = ApplicationConfig["HONEYBADGER_API_KEY"]
config.revision = ApplicationConfig["HEROKU_SLUG_COMMIT"]
config.exceptions.ignore += [Pundit::NotAuthorizedError, ActiveRecord::RecordNotFound]
config.exceptions.ignore += [
Pundit::NotAuthorizedError,
ActiveRecord::RecordNotFound,
ActiveRecord::QueryCanceled,
]
config.request.filter_keys += %w[authorization]
config.delayed_job.attempt_threshold = 10