Sha256: 0def46af322c48bd7861a15ad838f07447581c79d2594b5bbc543a178dabd159
Contents?: true
Size: 570 Bytes
Versions: 16
Compression:
Stored size: 570 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 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
16 entries across 16 versions & 1 rubygems