开发者

How do you suppress logging for one particular action?

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.


  1. 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?

  2. You can look deeper into Rack to optimize your application. If javascript poll returns simple data it will fit perfectly for you

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜