always flush all logs. fixes #4277

This commit is contained in:
Aaron Patterson 2012-02-07 13:49:43 -08:00
parent d3f0f92501
commit 55cc16f502
1 changed files with 1 additions and 1 deletions

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::Logger.new(f)