From 248220b3a02b03fdff50a54f21cd9e3d6f7d882a Mon Sep 17 00:00:00 2001 From: Andy Wallace Date: Thu, 22 Aug 2024 13:08:45 -0700 Subject: [PATCH] Stop notifying Rollbar of ActionController::RoutingError --- config/initializers/rollbar.rb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/config/initializers/rollbar.rb b/config/initializers/rollbar.rb index 0fddd57fd..3aac09461 100644 --- a/config/initializers/rollbar.rb +++ b/config/initializers/rollbar.rb @@ -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' )