Sha256: 7761a864bfdd7ded76a9751823b2ce4e2b7d4574baf070c6e2e02d0e28158792
Contents?: true
Size: 571 Bytes
Versions: 12
Compression:
Stored size: 571 Bytes
Contents
# 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
12 entries across 12 versions & 1 rubygems