lundi 25 avril 2016

Silencing "Cache read" statements in Rails development.log for all my assets

I'm trying to figure out how to quiet the very distracting Cache read: http://localhost:3000/assets/... statements in my Rails development.log, which really slow me down with all the scrolling they cause me to do.

In my development log, after the SQL statements, and reads/writes for cache fragments (which is still useful and I want to keep), there is a long list of Cache read statements for all the js, css, and images being used on the requested page. Just to show a handful:

Cache read: http://localhost:3000/assets/jquery.atwho.css?body=1
Cache read: http://localhost:3000/assets/jquery.selectric.css?body=1
Cache read: http://localhost:3000/assets/font-awesome.css?body=1
Cache read: http://localhost:3000/assets/480.css?body=1
Cache read: http://localhost:3000/assets/768.css?body=1

I'm using the quiet_assets gem as was suggested in another SO post, but that's not working on these "Cache read" statements.

Is there some simple setting I'm missing in config/environments/development.rb to not output these to the log? Thanks everyone

Aucun commentaire:

Enregistrer un commentaire