lib/adhearsion-stats/metrics_logger.rb in adhearsion-stats-0.0.1 vs lib/adhearsion-stats/metrics_logger.rb in adhearsion-stats-0.0.2
- old
+ new
@@ -8,10 +8,10 @@
"#{nice}: #{msg}\n"
end
end
def self.setup_logger
- logfile = File.open(File.dirname(__FILE__) + "#{Adhearsion.root}/log/adhearsion-stats.log", 'a')
+ logfile = File.open("#{Adhearsion.root}/log/adhearsion-stats.log", 'a')
logfile.sync = true
@metrics_logger = MetricsLogger.new(logfile)
end
end