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