可能重複登錄的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)
這意味着在日誌中獲取實際的請求需要大量的滾動。如果有的話,我很少關心我日誌中的這些資產請求,所以有沒有辦法禁用資產請求的日誌記錄?