From 94027480de38d171282a64f313d383f3e0ebede3 Mon Sep 17 00:00:00 2001 From: Santiago Bartesaghi Date: Tue, 26 Nov 2024 10:20:15 -0300 Subject: [PATCH] Disable logging in CI (#910) --- config/environments/test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 5b1fa517..a4368aca 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -70,4 +70,10 @@ # Use test adapter for ActiveJob config.active_job.queue_adapter = :test + + # Disable logging in CI to improve run time by 10% + if ENV['CI'].present? + config.logger = Logger.new(nil) + config.log_level = :fatal + end end