I want to suppress Rails logging for one particula开发者_运维知识库r actions (it's polled by javascript every 2 seconds and I don't need all that output). How do I accomplish this? Rails 3.
Look here: How to silence the call to a rails controller's action all together and here: How can I disable logging in Ruby on Rails on a per-action basis?
You can look deeper into Rack to optimize your application. If javascript poll returns simple data it will fit perfectly for you
精彩评论