lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.7.0.174.beta vs lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.7.0.177
- old
+ new
@@ -135,12 +135,12 @@
def to_collector_hash
DottedHash.new(apply_mask(flattened)).to_hash
end
def app_names
- case self[:app_name]
- when Array then self[:app_name]
- when String then self[:app_name].split(';')
+ case NewRelic::Agent.config[:app_name]
+ when Array then NewRelic::Agent.config[:app_name]
+ when String then NewRelic::Agent.config[:app_name].split(';')
else []
end
end
# Generally only useful during initial construction and tests