lib/baleen/utils/logger.rb in baleen-0.2.0 vs lib/baleen/utils/logger.rb in baleen-0.2.1
- old
+ new
@@ -26,10 +26,10 @@
attr_reader :log
def initialize
config = Baleen::Configuration.instance
- if config.debug == DEBUG
+ if config.debug
device = STDOUT
else
dir = File.join(config.dir, "log")
FileUtils.mkdir_p dir
device = File.join(dir, "baleen.log")