Sha256: 775d4632339ef82b330677d4dfd1ad882979c2e1d31de48c6d42d2f04c29fc5c
Contents?: true
Size: 595 Bytes
Versions: 39
Compression:
Stored size: 595 Bytes
Contents
# typed: ignore # Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.com/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
39 entries across 39 versions & 1 rubygems