From a1b89094be708b126535621b20bca5796018b39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 8 Nov 2019 18:05:38 +0100 Subject: [PATCH] Don't add log info messages when running tests We use these messages in rake tasks, but when we run the test suite they only add noise. --- lib/application_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application_logger.rb b/lib/application_logger.rb index a9f953f48..44a4a0fde 100644 --- a/lib/application_logger.rb +++ b/lib/application_logger.rb @@ -1,6 +1,6 @@ class ApplicationLogger def info(message) - logger.info(message) + logger.info(message) unless Rails.env.test? end def logger