2

I want to suppress Rails logging for one particular actions (it's polled by javascript every 2 seconds and I don't need all that output). How do I accomplish this? Rails 3.

dan
  • 43,914
  • 47
  • 153
  • 254

1 Answers1

2
  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

Community
  • 1
  • 1
fl00r
  • 82,987
  • 33
  • 217
  • 237