From 1b649016d91737ec666f73418ed4229bcbb24601 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 28 Jul 2021 14:27:45 +0200 Subject: [PATCH] DEV: suppress assets logs from qunit tests (#13871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partially reverts: https://github.com/discourse/discourse/commit/956f8492507f6004272b1e6900f3e56c5c0f41a1 Note that this way of running tests will soon be deprecated in favor of `ember test` and this shouldn’t matter anymore. --- config/unicorn.conf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index b00fca1883f..44bfb493f83 100644 --- a/config/unicorn.conf.rb +++ b/config/unicorn.conf.rb @@ -25,7 +25,7 @@ end # feel free to point this anywhere accessible on the filesystem pid (ENV["UNICORN_PID_PATH"] || "#{discourse_path}/tmp/pids/unicorn.pid") -if ENV["RAILS_ENV"] != "production" +if ENV["RAILS_ENV"] == "development" || !ENV["RAILS_ENV"] logger Logger.new($stdout) # we want a longer timeout in dev cause first request can be really slow timeout (ENV["UNICORN_TIMEOUT"] && ENV["UNICORN_TIMEOUT"].to_i || 60)