开发者

How do you suppress logging for one particular action?

开发者 https://www.devze.com 2023-02-16 05:53 出处:网络
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.

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

精彩评论

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