Reputation: 1271
I have a Rails application (4.2.4) which has an action which is invoked frequently so I have a a lot of extra log output. Is there a way to log anything (controller, action, parameters, complection time, etc.) for just this one action?
Thanks
Upvotes: 1
Views: 1771
Reputation: 2280
maybe this helps you
def method
Rails.logger.silence do
# this block is without logger stuff
end
end
or further deep inside
http://dennisreimann.de/blog/silencing-the-rails-log-on-a-per-action-basis/
Upvotes: 5
Reputation: 4515
look at https://github.com/evrone/quiet_assets - however I'm not sure if it works for your case.
Upvotes: 0