Method: NewRelic::Agent::Configuration::Manager#enforce_allowlist
- Defined in:
- lib/new_relic/agent/configuration/manager.rb
permalink #enforce_allowlist(key, value) ⇒ Object
164 165 166 167 168 169 170 171 |
# File 'lib/new_relic/agent/configuration/manager.rb', line 164 def enforce_allowlist(key, value) return unless allowlist = default_source.allowlist_for(key) return if allowlist.include?(value) default = default_source.default_for(key) NewRelic::Agent.logger.warn "Invalid value '#{value}' for #{key}, applying default value of '#{default}'" default end |