Class: Rails::Rack::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/ready/for/migration/rails_rack_logger_extention.rb

Instance Method Summary collapse

Instance Method Details

#call_with_silencer(env) ⇒ Object Also known as: call



7
8
9
10
11
12
13
14
15
# File 'lib/ready/for/migration/rails_rack_logger_extention.rb', line 7

def call_with_silencer(env)
  if env['PATH_INFO'] == mounted_path
    logger.silence do
      call_without_silencer(env)
    end
  else
    call_without_silencer(env)
  end
end