From d8265693c4371329ea4b07dd18e11bd2ae6d9a38 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 10 Dec 2018 18:06:11 +0500 Subject: [PATCH] Configure Sentry Raven excluded exceptions --- config/initializers/raven.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/initializers/raven.rb b/config/initializers/raven.rb index 08f8613..7a3ecac 100644 --- a/config/initializers/raven.rb +++ b/config/initializers/raven.rb @@ -6,5 +6,16 @@ Raven.configure do |config| config.current_environment = Rails.env config.dsn = Rails.application.credentials.raven_dsn config.environments = %w[production] + config.excluded_exceptions = %w[ + AbstractController::ActionNotFound + ActionController::InvalidAuthenticityToken + ActionController::RoutingError + ActionController::UnknownAction + ActiveRecord::RecordNotFound + CGI::Session::CookieStore::TamperedWithCookie + Mongoid::Errors::DocumentNotFound + Sinatra::NotFound + ActiveJob::DeserializationError + ] config.sanitize_fields = Partynest::Application::FILTER_PARAMS.map(&:to_s) end