On Sep 28, 2009, at 5:16 PM, Greg Willits wrote:

>
> Jason Roelofs wrote:
>> On Mon, Sep 28, 2009 at 7:22 PM, Greg Willits <
>> class PulseController
>>  def logger
>>  end
>
> Heh, that's brute force but simple :-)  It supresses messages from the
> controller alright, but doesn't supress the database query as part of
> that action's chores (doing a mysql ping as part of the stack check).
>
> But I could possibly tinker further.

I'm coming in late so maybe this has mentioned...

def my_action
   ActiveRecord::Base.silence do
     ..... nothing AR related will show up in the logs....
   end
end

Search the rails source for "silence" to make sure I've got that down  
right.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to