Configure Sentry Raven excluded exceptions
This commit is contained in:
parent
b419ceecf4
commit
d8265693c4
1 changed files with 11 additions and 0 deletions
|
@ -6,5 +6,16 @@ Raven.configure do |config|
|
||||||
config.current_environment = Rails.env
|
config.current_environment = Rails.env
|
||||||
config.dsn = Rails.application.credentials.raven_dsn
|
config.dsn = Rails.application.credentials.raven_dsn
|
||||||
config.environments = %w[production]
|
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)
|
config.sanitize_fields = Partynest::Application::FILTER_PARAMS.map(&:to_s)
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue