lib/contrast/framework/rails/railtie.rb in contrast-agent-4.13.1 vs lib/contrast/framework/rails/railtie.rb in contrast-agent-4.14.0
- old
+ new
@@ -12,10 +12,10 @@
include Contrast::Components::Logger::InstanceMethods
initializer 'Contrast Ruby Agent Initializer' do |app|
log_rails = defined?(Rails) && defined?(Rails.logger)
- Rails.logger.debug("In railtie ::#{ app.middleware.inspect }") if log_rails
+ Rails.logger.debug { "In railtie ::#{ app.middleware.inspect }" } if log_rails
if ::Contrast::APP_CONTEXT.instrument_middleware_stack?
::Contrast::AGENT.insert_middleware(app)
else
Rails.logger.debug('Detected a running job server, skipping Contrast middleware insertion.') if log_rails