mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
always flush all logs. fixes #4277
This commit is contained in:
@@ -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::BufferedLogger.new(f)
|
||||
|
||||
Reference in New Issue
Block a user