Silence logging for a particular action

Anyone know how to silence logging of a particular Rails action?

I have monit setup to ping a “/ping” route and the action just renders
some quick text. The problem is I get:

Processing SiteController#ping (for at 2007-04-30 19:55:46)
Session ID: 78f1e1aa5c7ddb194565ee79950de618
Parameters: {“action”=>“ping”, “controller”=>“site”}
Completed in 0.00019 (5159 reqs/sec) | Rendering: 0.00006 (28%) | DB:
0.00000 (0%) | 200 OK [http:// /ping]

all over my log files every time monit does it’s business…

Any ideas?


Zack C.

Hi Zack,

Does filter_parameter_logging not work with monit for some reason? Or
you saying you want to silence the logging of the entire
cycle for just this request? Or something else …?


You could just grep the file with ‘ping’ and use -v to show the rows
that do not match.