Skip to content

Commit

Permalink
DEV: Don't use logstash for unicorn if ENV is blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Jun 11, 2020
1 parent d47dc1e commit b66f218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/unicorn.conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b66f218

Please sign in to comment.