diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-07 13:49:43 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-07 13:50:50 -0800 |
commit | b3328779d0ce8e4568e7966099754eae1e5791ad (patch) | |
tree | 3889f70d54611b446b217d055678e5edcfc049fb /railties/lib/rails | |
parent | dafc3c7a066f9dc3a2a157b1294ba414e2e2e7b4 (diff) | |
download | rails-b3328779d0ce8e4568e7966099754eae1e5791ad.tar.gz rails-b3328779d0ce8e4568e7966099754eae1e5791ad.tar.bz2 rails-b3328779d0ce8e4568e7966099754eae1e5791ad.zip |
always flush all logs. fixes #4277
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb index 5f04c1d8c6..3576e6dded 100644 --- a/railties/lib/rails/application/bootstrap.rb +++ b/railties/lib/rails/application/bootstrap.rb @@ -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) |