1
0
Fork 0

Configure Sentry Raven excluded exceptions

This commit is contained in:
Alex Kotov 2018-12-10 18:06:11 +05:00
parent b419ceecf4
commit d8265693c4
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -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