From cae17a1f9f2c8c05aba093fe134523c2bf11a74d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 27 Oct 2023 17:33:54 +0100 Subject: [PATCH] Limit log file size in development and test --- config/initializers/new_framework_defaults_7_1.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 37024fa55..c8d12c67e 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -127,9 +127,7 @@ Rails.application.config.active_support.use_message_serializer_for_metadata = tr # `config.load_defaults 7.1` does not set this value for environments other than # development and test. # -# if Rails.env.local? -# Rails.application.config.log_file_size = 100 * 1024 * 1024 -# end +Rails.application.config.log_file_size = 100 * 1024 * 1024 if %w[development test].include?(Rails.env) # Enable raising on assignment to attr_readonly attributes. The previous # behavior would allow assignment but silently not persist changes to the -- 2.39.5