Browse files

always flush all logs. fixes #4277

  • Loading branch information...
1 parent dafc3c7 commit b3328779d0ce8e4568e7966099754eae1e5791ad @tenderlove tenderlove committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application/bootstrap.rb
View
2 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::BufferedLogger.new(f)

0 comments on commit b332877

Please sign in to comment.