Set logstash-logger file output to sync.

This commit is contained in:
Guo Xiang Tan 2017-10-30 20:56:29 +08:00
parent 43920827ed
commit b8e580b0e0
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
type: :multi_delegator,
outputs: [
{ uri: logstash_uri },
{ type: :file, path: "#{Rails.root}/log/#{Rails.env}.log" }
{ type: :file, path: "#{Rails.root}/log/#{Rails.env}.log", sync: true }
]
)
end