lib/sqreen/dependency/new_relic.rb in sqreen-1.23.1 vs lib/sqreen/dependency/new_relic.rb in sqreen-1.23.2
- old
+ new
@@ -17,10 +17,10 @@
end
def ignore_sqreen_exceptions
return unless required?
- NewRelic::Agent::Agent.instance.error_collector.ignore(['Sqreen::AttackBlocked'])
+ ::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