lib/new_relic/agent/agent.rb in newrelic_rpm-3.1.1.beta1 vs lib/new_relic/agent/agent.rb in newrelic_rpm-3.1.1.beta2
- old
+ new
@@ -438,10 +438,11 @@
# located. This seems redundant, but can come in handy when
# we have some log file path set by the user which parses
# incorrectly, sending the log file to who-knows-where
def notify_log_file_location
log_file = NewRelic::Control.instance.log_file
- log_if(log_file, :info, "Agent Log found in #{log_file}")
+ log_if(File.exists?(log_file.to_s), :info,
+ "Agent Log found in #{log_file}")
end
# Classy logging of the agent version and the current pid,
# so we can disambiguate processes in the log file and make
# sure they're running a reasonable version