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:02 -0800 |
commit | 55cc16f502399b69051e4ff5432569bbea45e9c0 (patch) | |
tree | 97ccf3c2b0dc652a345fa8a1919792c337e1d00c /railties/lib | |
parent | d3f0f92501998682d438c387723e8560e3d76899 (diff) | |
download | rails-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.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 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) |