lib/elastic_apm/railtie.rb in elastic-apm-0.4.0 vs lib/elastic_apm/railtie.rb in elastic-apm-0.4.1

- old
+ new

@@ -2,11 +2,10 @@ module ElasticAPM # @api private class Railtie < Rails::Railtie config.elastic_apm = ActiveSupport::OrderedOptions.new - Config::DEFAULTS.each { |option, value| config.elastic_apm[option] = value } initializer 'elastic_apm.initialize' do |app| config = Config.new app.config.elastic_apm do |c| c.app = app end @@ -16,10 +15,9 @@ config.send(:"#{option}=", value) end begin ElasticAPM.start config - Rails.logger.info "#{Log::PREFIX}Running" app.middleware.insert 0, Middleware rescue StandardError => e Rails.logger.error "#{Log::PREFIX}Failed to start: #{e.message}" Rails.logger.debug e.backtrace.join("\n")