可能重复登录的Rails 3.1资产的请求:
How to disable logging of asset pipeline (sprockets) messages in Rails 3.1?不要在开发模式
由于使资产管我的开发日志已满的东西,如:
Started GET "/assets/icons/close_32.png" for 127.0.0.1 at 2011-09-19 11:05:39 +0100
Started GET "/assets/vendor/colorbox/controls.png" for 127.0.0.1 at 2011-09-19 11:05:39 +0100
Served asset /icons/close_32.png - 304 Not Modified (0ms)
Served asset /vendor/colorbox/controls.png - 304 Not Modified (0ms)
这意味着在日志中获取实际的请求需要大量的滚动。如果有的话,我很少关心我日志中的这些资产请求,所以有没有办法禁用资产请求的日志记录?