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

def return_logging_back_to_normal


I can’t figure out what to replace the ??? with. Am I thinking about the
subject correctly?



did you ever figure this out?


On Dec 12 2007, 3:49 pm, Elliott B. <rails-mailing-l…@andreas-

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs