views:

52

answers:

2

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?

A: 

You can set

config.log_level = :warn

That way only issues will be logged.

thomasfedb
But I DO wanna log the requests. I just don't wanna log THAT request :(
Erik Escobedo
Sorry then, only thing i can recomend is parsing your log files. This is why I love logging to MySQL, you just query for what you want!
thomasfedb
A: 

Duplicate of this answer

Mike Buckbee
What should I do? Delete it? I'm new in SO :(
Erik Escobedo
Just leave it. As long as everything eventually points back to the original q/a I think it's ok.
Mike Buckbee