mirror of https://github.com/rails/rails
always flush all logs. fixes #4277
This commit is contained in:
parent
d3f0f92501
commit
55cc16f502
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue