From: Tom Hughes Date: Fri, 27 Oct 2023 16:33:54 +0000 (+0100) Subject: Limit log file size in development and test X-Git-Tag: live~1342^2~7 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/cae17a1f9f2c8c05aba093fe134523c2bf11a74d?hp=39e66c69b75a99c42aab3267bee0f23f938fad3a Limit log file size in development and test --- 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