-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silence asset requests with config.assets.quiet #355
Conversation
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @rafaelfranca (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Looks great. It seems the sprockets 4 tests are not passing. I guess it is because the tests you defined needs to point to a manifest file. Could you take a look? |
Build fixed. 💚 |
Can we have version release please 💙 |
quiet_assets has been seemingly abandoned, and now sprockets-rails has the feature built-in! From this PR: rails/sprockets-rails#355
Upgrade sprockets and sprockets rails, remove quiet_assets ## What does this MR do? Upgrade Sprockets from 3.6.0 to 3.6.2. Changelog: https://github.com/rails/sprockets/blob/3.x/CHANGELOG.md Upgrade Sprockets Rails from 3.0.4 to 3.1.1. Changelog: rails/sprockets-rails@v3.0.4...v3.1.1 quiet_assets has been seemingly abandoned, and now sprockets-rails has the feature built-in! The config was added in this PR: rails/sprockets-rails#355 Working towards #14286. See merge request !5029
We were using Rails 5.0.0.rc1. * Instead of the `quiet_assets` gem, set `config.assets.quiet = true`: rails/sprockets-rails#355 * Remove `coffee-rails`, which wasn't being used
Using sprocket-rails 3.2.0 I'm still getting thinks like:
This should be removed also? or this is from the webserver (thin)? |
According to my testing, the integration of the In Rails 5, with
I understand that the team has repeatedly stated that they will not disable these logs, I am just looking for a way to silence them in my own environments, and older solutions do not seem to work in the 5.x line. Can anyone provide some direction as to how I might eliminate the request log lines -- everything after |
For these other messages, I found through the middleware stack that they are produced by WEBrick as access log messages. I was finally able to quiet them using this Rails Server init config |
@rafaelfranca @josh
Builds on and finishes what @route started in #338.
Basically a deprecation of the
quiet_assets
gem.Adds the
config.assets.quiet
option. Defaulted tofalse
in all cases. When true, it loads a middleware. That middleware looks at the asset prefix path, and if matches will wrap the given request in alogger.silence { }
call.I've added to the
README
but I don't know if/where I should document it further.