In Ruby on Rails, in terms of the development logging (i.e. what you see in the console) – how can I stop the GETs for subsequent assets (e.g. javascript, images) getting logged? That is, all the subsequent GET’s that occur after the main action is called.
For each valid interaction I get a heap of lines like the following that would be good not to have to see…
Started GET “/assets/jquery_ujs.js?body=1” for 10.1.1.1 at 2012-02-21
09:42:46 +1000 Served asset /jquery_ujs.js – 304 Not Modified (1ms)
This has been a hotly debated issue on the Rails GitHub issues page.
see: https://github.com/rails/rails/issues/2639
Basically you can hide any logs related to Sprockets using the following config value
config.assets.logger = falseBut this won’t actually hide the
GETrequests in the development log (see Jose Valim’s explanation)To fully hide all asset messages, use the patch described here.