Permalink
Browse files

always flush all logs. fixes #4277

  • Loading branch information...
1 parent d3f0f92 commit 55cc16f502399b69051e4ff5432569bbea45e9c0 @tenderlove tenderlove committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application/bootstrap.rb
@@ -30,7 +30,7 @@ module Bootstrap
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)

3 comments on commit 55cc16f

@luckyruby

Sweet! I've been running into this issue since 3.2.0. Will this be available in 3.2.2?

@counterbeing

Yay! That's super helpful for the time being!

Please sign in to comment.