Skip to content

Commit

Permalink
Put back the quiet assets in development:
Browse files Browse the repository at this point in the history
- This was removed in 0f43fed.
  This option is supported by propshaft.

  Currently, the terminal is clutted with assets request log.
  • Loading branch information
Edouard-chin committed Nov 13, 2024
1 parent ca6dd61 commit 147738c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Rails.application.configure do
# Highlight code that enqueued background job in logs.
config.active_job.verbose_enqueue_logs = true

<%- end -%>
<%- unless options[:skip_asset_pipeline] -%>
# Suppress logger output for asset requests.
config.assets.quiet = true

<%- end -%>
# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true
Expand Down
5 changes: 5 additions & 0 deletions railties/test/generators/app_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,11 @@ def test_inclusion_of_rubocop
assert_file "config/environments/development.rb", %r|# Apply autocorrection by RuboCop to files generated by `bin/rails generate`\.|
end

def test_quiet_assets_in_development
run_generator
assert_file "config/environments/development.rb", /config\.assets.quiet = true/
end

def test_rubocop_is_skipped_if_required
run_generator [destination_root, "--skip-rubocop"]

Expand Down

0 comments on commit 147738c

Please sign in to comment.