Selective Logging for Specific IP

Folks,

Is there any way I can turn off the "Processing … " messages in the log
file for some specific hosts?

I know this method in actionpack/lib/action_controller/base.rd does the
logging

def log_processing
if logger
logger.info “\n\nProcessing
#{controller_class_name}##{action_name} (for #{request_origin})
[#{request.method.to_s.upcase}]”
logger.info " Session ID: #{@session.session_id}" if @session
and @session.respond_to?(:session_id)
logger.info " Parameters: #{respond_to?(:filter_parameters) ?
filter_parameters(@params).inspect : @params.inspect}"
end
end

I can try to hack this to check for Request IP but is there a cleaner
way?

AJ

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