lib/algolia/logger_helper.rb in algolia-2.2.3 vs lib/algolia/logger_helper.rb in algolia-2.2.4

- old
+ new

@@ -3,10 +3,10 @@ module Algolia class LoggerHelper # @param debug_file [nil|String] file used to output the logs # def self.create(debug_file = nil) - file = debug_file || File.new('debug.log') + file = debug_file || (ENV['ALGOLIA_DEBUG'] ? File.new('debug.log') : $stderr) instance = ::Logger.new file instance.progname = 'algolia' instance end end