More control over Unicorn logstash logger.

This commit is contained in:
Guo Xiang Tan 2017-11-15 12:28:36 +08:00
parent 89d9ffa884
commit db68434db1
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# See http://unicorn.bogomips.org/Unicorn/Configurator.html
if ENV["LOGSTASH_URI"]
if ENV["LOGSTASH_UNICORN_URI"]
require_relative '../lib/discourse_logstash_logger'
logger DiscourseLogstashLogger.logger(uri: ENV['LOGSTASH_URI'], type: :unicorn)
logger DiscourseLogstashLogger.logger(uri: ENV['LOGSTASH_UNICORN_URI'], type: :unicorn)
end
# enable out of band gc out of the box, it is low risk and improves perf a lot