0

Possible Duplicate:
How can I disable logging in Ruby on Rails on a per-action basis?

I use an ajax "ping" for keeping track of the online users, and for alerting them about notifications if any. However, this constant request are being logged in my production.log file, and that's not funny, since I want to keep track of the app performance and that just obfuscate my log file.

What should I to do?

Community
  • 1
  • 1
Erik Escobedo
  • 2,793
  • 24
  • 42
  • Duplicate of [this answer](http://stackoverflow.com/questions/2196828/how-can-i-disable-logging-in-ruby-on-rails-on-a-per-action-basis) – Mike Buckbee Jun 02 '10 at 06:05

1 Answers1

0

You can set

config.log_level = :warn

That way only issues will be logged.

thomasfedb
  • 5,990
  • 2
  • 37
  • 65