From feda7e1ddfa26fcfd98b656353362a49a68037d7 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Fri, 21 Jun 2019 10:30:51 +0100 Subject: [PATCH] DEV: Remove logging when redis is terminated This hasn't proved useful, just noisy. --- config/boot.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/boot.rb b/config/boot.rb index f2197088fa..ae2ee5b2fa 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -49,5 +49,8 @@ if ENV['RAILS_ENV'] == "test" && ENV['TEST_ENV_NUMBER'] ENV["DISCOURSE_REDIS_PORT"] = port.to_s ENV["RAILS_DB"] = "discourse_test_#{n}" - at_exit { STDERR.puts "Terminating redis #{n}"; Process.kill("SIGTERM", pid); Process.wait } + at_exit do + Process.kill("SIGTERM", pid) + Process.wait + end end