Skip to content

Commit

Permalink
Stop notifying Rollbar of ActionController::RoutingError
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefilter committed Aug 22, 2024
1 parent 25a6b5d commit 248220b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,7 @@
# Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore'
# 'ignore' will cause the exception to not be reported at all.
config.exception_level_filters.merge!(
'ActionController::RoutingError' => lambda do |error|
case error.message
when 'No route matches [GET] "/ads.txt"', 'No route matches [GET] "/sheetmusic"'
'ignore'
when 'Not Found'
if error.backtrace&.first&.match?(/\/blacklight\/catalog.rb\:\d+\:in `facet'/)
'ignore'
else
'warning'
end
else
'warning'
end
end,
'ActionController::RoutingError' => 'ignore',
'Blacklight::Exceptions::RecordNotFound' => 'ignore'
)

Expand Down

0 comments on commit 248220b

Please sign in to comment.