Simplify the way to set the maximum log size
We can use the new configuration option in Rails 7.1, so we don't have to configure it manually.
This commit is contained in:
@@ -149,9 +149,9 @@ 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
|
||||
if Rails.env.local?
|
||||
Rails.application.config.log_file_size = 100 * 1024 * 1024
|
||||
end
|
||||
|
||||
###
|
||||
# Enable raising on assignment to attr_readonly attributes. The previous
|
||||
|
||||
Reference in New Issue
Block a user