Method: NewRelic::Agent::Configuration::Manager#log_config
- Defined in:
- lib/new_relic/agent/configuration/manager.rb
permalink #log_config(direction, source) ⇒ Object
421 422 423 424 425 426 427 428 429 430 |
# File 'lib/new_relic/agent/configuration/manager.rb', line 421 def log_config(direction, source) # Just generating this log message (specifically calling `flattened`) # is expensive enough that we don't want to do it unless we're # actually going to be logging the message based on our current log # level, so use a `do` block. NewRelic::Agent.logger.debug do hash = flattened.delete_if { |k, _h| DEFAULTS.fetch(k, {}).fetch(:exclude_from_reported_settings, false) } "Updating config (#{direction}) from #{source.class}. Results: #{hash.inspect}" end end |