Limit log file size in development and test

This commit is contained in:
Tom Hughes 2023-10-27 17:33:54 +01:00
parent 39e66c69b7
commit cae17a1f9f

View file

@ -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