Sha256: 7b4c22faf3fcdbc107be8b8e330fc675806cf190f130ed6df76521da84844c96
Contents?: true
Size: 577 Bytes
Versions: 16
Compression:
Stored size: 577 Bytes
Contents
# Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.io/terms.html module Sqreen module Dependency module Sentry module_function 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 end end end
Version data entries
16 entries across 16 versions & 1 rubygems