aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-07 13:49:43 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-07 13:50:02 -0800
commit55cc16f502399b69051e4ff5432569bbea45e9c0 (patch)
tree97ccf3c2b0dc652a345fa8a1919792c337e1d00c /railties/lib
parentd3f0f92501998682d438c387723e8560e3d76899 (diff)
downloadrails-55cc16f502399b69051e4ff5432569bbea45e9c0.tar.gz
rails-55cc16f502399b69051e4ff5432569bbea45e9c0.tar.bz2
rails-55cc16f502399b69051e4ff5432569bbea45e9c0.zip
always flush all logs. fixes #4277
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application/bootstrap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb
index d55ec982ec..efc7dca0d4 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::Logger.new(f)