Sha256: cb228d95307aba4d827dd9611bdab7be588f16bfdb9abd1c085803ad27b46f6c
Contents?: true
Size: 588 Bytes
Versions: 25
Compression:
Stored size: 588 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 NewRelic module_function def ignore_sqreen_exceptions return unless defined?(NewRelic::Agent::Agent) NewRelic::Agent::Agent.instance.error_collector.ignore(['Sqreen::AttackBlocked']) rescue ::Exception => e # rubocop:disable Lint/RescueException Sqreen.log.warn "Failed ignoring AttackBlocked on NewRelic: #{e.inspect}" end end end end
Version data entries
25 entries across 25 versions & 1 rubygems