lib/new_relic/control/frameworks/rails.rb in newrelic_rpm-3.11.1.284 vs lib/new_relic/control/frameworks/rails.rb in newrelic_rpm-3.11.2.286

- old
+ new

@@ -60,9 +60,13 @@ else install_developer_mode(rails_config) if Agent.config[:developer_mode] install_browser_monitoring(rails_config) install_agent_hooks(rails_config) end + rescue => e + ::NewRelic::Agent.logger.error("Failure during init_config for Rails. Is Rails required in a non-Rails app? Set NEW_RELIC_FRAMEWORK=ruby to avoid this message.", + "The Ruby agent will continue running, but Rails-specific features may be missing.", + e) end def install_agent_hooks(config) return if @agent_hooks_installed @agent_hooks_installed = true