Module: Sqreen::Dependency::Sentry
- Defined in:
- lib/sqreen/dependency/sentry.rb
Class Method Summary collapse
Class Method Details
.ignore_sqreen_exceptions ⇒ Object
11 12 13 14 15 16 |
# File 'lib/sqreen/dependency/sentry.rb', line 11 def ignore_sqreen_exceptions return unless defined?(Raven) && Raven.respond_to?(:configuration) Raven.configuration.excluded_exceptions += ['Sqreen::AttackBlocked'] rescue ::Exception => e # rubocop:disable Lint/RescueException Sqreen.log.warn "Failed setting Sentry's excluded_exceptions: #{e.inspect}" end |