Prevent logging of InvalidAuthenticityToken in Sentry

This commit is contained in:
Sebastian Serth
2021-01-24 22:36:22 +01:00
parent ad3e4ce4e2
commit da2062caec

View File

@ -9,7 +9,7 @@ Rails.application.tap do |app|
config.sanitize_fields = app.config.filter_parameters.map(&:to_s)
config.processors -= [Raven::Processor::PostData] # Do this to send POST data
config.excluded_exceptions -= ['ActionController::InvalidAuthenticityToken']
# config.excluded_exceptions -= ['ActionController::InvalidAuthenticityToken']
config.async = lambda do |event|
pool.post { ::Raven.send_event(event) }