init.rb in newrelic_rpm-8.9.0 vs init.rb in newrelic_rpm-8.10.0
- old
+ new
@@ -1,8 +1,9 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
+# frozen_string_literal: true
# This is the initialization for the New Relic Ruby Agent when used as
# a plugin
require 'new_relic/control'
@@ -22,9 +23,9 @@
config
elsif defined?(Rails.configuration)
Rails.configuration
end
- NewRelic::Control.instance.init_plugin :config => current_config
+ NewRelic::Control.instance.init_plugin(:config => current_config)
rescue => e
- ::NewRelic::Agent.logger.error "Error initializing New Relic plugin. Agent is disabled.", e
+ ::NewRelic::Agent.logger.error("Error initializing New Relic plugin. Agent is disabled.", e)
end