1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove the random line at the beginning of every new log file

This commit is contained in:
Tim Carey-Smith 2009-10-29 00:00:18 -07:00 committed by Yehuda Katz
parent 51c24ae3e3
commit 3f56038612

View file

@ -53,7 +53,6 @@ module ActiveSupport
FileUtils.mkdir_p(File.dirname(log)) FileUtils.mkdir_p(File.dirname(log))
@log = open(log, (File::WRONLY | File::APPEND | File::CREAT)) @log = open(log, (File::WRONLY | File::APPEND | File::CREAT))
@log.sync = true @log.sync = true
@log.write("# Logfile created on %s" % [Time.now.to_s])
end end
end end