lib/appsignal.rb in appsignal-0.12.rc.8 vs lib/appsignal.rb in appsignal-0.12.rc.9

- old
+ new

@@ -39,11 +39,11 @@ logger.level = Logger::DEBUG else logger.level = Logger::INFO end if config.active? - logger.info("Starting AppSignal #{Appsignal::VERSION} on #{RUBY_VERSION}/#{RUBY_PLATFORM}") + logger.info("Starting AppSignal #{Appsignal::VERSION} (#{$0}, Ruby #{RUBY_VERSION}, #{RUBY_PLATFORM})") config.write_to_environment Appsignal::Extension.start Appsignal::Hooks.load_hooks Appsignal::EventFormatter.initialize_formatters initialize_extensions @@ -190,11 +190,11 @@ "[#{datetime.strftime('%Y-%m-%dT%H:%M:%S')} (process) ##{Process.pid}][#{severity}] #{msg}\n" end end def start_logger(path_arg=nil) - path = Appsignal.config ? Appsignal.config[:log_file_path] : nil - if path && File.writable?(path) && + path = Appsignal.config ? Appsignal.config.log_file_path : nil + if path && File.writable?(File.dirname(path)) && !ENV['DYNO'] && !ENV['SHELLYCLOUD_DEPLOYMENT'] @logger = Logger.new(path) @logger.formatter = log_formatter else