mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Don't use logstash for unicorn if ENV is blank.
This commit is contained in:
parent
d47dc1e92d
commit
b66f2187f1
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# See http://unicorn.bogomips.org/Unicorn/Configurator.html
|
# See http://unicorn.bogomips.org/Unicorn/Configurator.html
|
||||||
|
|
||||||
if ENV["LOGSTASH_UNICORN_URI"]
|
if (ENV["LOGSTASH_UNICORN_URI"] || "").length > 0
|
||||||
require_relative '../lib/discourse_logstash_logger'
|
require_relative '../lib/discourse_logstash_logger'
|
||||||
logger DiscourseLogstashLogger.logger(uri: ENV['LOGSTASH_UNICORN_URI'], type: :unicorn)
|
logger DiscourseLogstashLogger.logger(uri: ENV['LOGSTASH_UNICORN_URI'], type: :unicorn)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user