From: Josh Thompson Date: Tue, 16 Apr 2024 16:18:35 +0000 (-0600) Subject: Disable logging in tests for speed benefits? X-Git-Tag: live~128^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/dd7754117bb913f0b916b04107b3dc3af9bb7e6c Disable logging in tests for speed benefits? --- diff --git a/config/environments/test.rb b/config/environments/test.rb index 80871151f..506ccf643 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -11,6 +11,9 @@ Rails.application.configure do # While tests run files are not watched, reloading is not necessary. config.enable_reloading = false + # disable logging in tests, for speed increases. Set to :info to bring back logging + config.log_level = :warn + # Eager loading loads your entire application. When running a single test locally, # this is usually not necessary, and can slow down your test suite. However, it's # recommended that you enable it in continuous integration systems to ensure eager