Elliott Blatt
2007-Dec-12 19:49 UTC
I''d like to turn off logging for a particular controller
I''ve got one controller whose log messages I''d like to not see. I''ve tried to an number of different techniques, but I cannot find the correct syntax for using Logger::silence. here''s what I''d like to do: def my_controller < ApplicationController before_filter :turn_logging_off after_filter :return_logging_back_to_normal def turn_logging_off ??? end def return_logging_back_to_normal ??? end end I can''t figure out what to replace the ??? with. Am I thinking about the subject correctly? EB -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---