always flush all logs. fixes #4277

This commit is contained in:
Aaron Patterson
2012-02-07 13:49:43 -08:00
parent dafc3c7a06
commit b3328779d0

View File

@@ -30,7 +30,7 @@ module Rails
f = File.open path, 'a'
f.binmode
f.sync = !Rails.env.production? # make sure every write flushes
f.sync = true # make sure every write flushes
logger = ActiveSupport::TaggedLogging.new(
ActiveSupport::BufferedLogger.new(f)