mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08: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
|
||||
|
||||
if ENV["LOGSTASH_UNICORN_URI"]
|
||||
if (ENV["LOGSTASH_UNICORN_URI"] || "").length > 0
|
||||
require_relative '../lib/discourse_logstash_logger'
|
||||
logger DiscourseLogstashLogger.logger(uri: ENV['LOGSTASH_UNICORN_URI'], type: :unicorn)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user