Skip to content

Commit

Permalink
Merge pull request #142 from alphagov/rescue-more-errors
Browse files Browse the repository at this point in the history
Exclude ActiveRecord rescue responses
  • Loading branch information
kevindew authored Mar 19, 2020
2 parents 9344834 + fe0f460 commit 0c813be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Unreleased

* Add missing ActiveRecord rescue_responses (https://github.com/alphagov/govuk_app_config/pull/142)

# 2.1.1

* Revert using Sentry option of rails_report_rescued_exceptions (https://github.com/alphagov/govuk_app_config/pull/140)
* Revert using sentry option of rails_report_rescued_exceptions (https://github.com/alphagov/govuk_app_config/pull/140)

# 2.1.0

Expand Down
9 changes: 7 additions & 2 deletions lib/govuk_app_config/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
config.silence_ready = !Rails.env.production? if defined?(Rails)

config.excluded_exceptions = [
# default Rails rescue responses
# Default ActionDispatch rescue responses
"ActionController::RoutingError",
"AbstractController::ActionNotFound",
"ActionController::MethodNotAllowed",
Expand All @@ -24,7 +24,12 @@
"ActionController::ParameterMissing",
"Rack::QueryParser::ParameterTypeError",
"Rack::QueryParser::InvalidParameterError",
# additional items
# Default ActiveRecord rescue responses
"ActiveRecord::RecordNotFound",
"ActiveRecord::StaleObjectError",
"ActiveRecord::RecordInvalid",
"ActiveRecord::RecordNotSaved",
# Additional items
"ActiveJob::DeserializationError",
"CGI::Session::CookieStore::TamperedWithCookie",
"GdsApi::HTTPIntermittentServerError",
Expand Down

0 comments on commit 0c813be

Please sign in to comment.