lib/ocean/selective_rack_logger.rb
def call(env)
    if env['PATH_INFO'] == "/alive"
      old_level = Rails.logger.level
      Rails.logger.level = 1234567890              # > 5
      begin
        @app.call(env)                             # returns [..., ..., ...]
      ensure
        Rails.logger.level = old_level
      end
    else
      super(env)                                   # returns [..., ..., ...]
    end
  end
#
# Suppresses logging of /alive requests from Varnish.
#
Suppresses logging of /alive requests from Varnish.
Suppresses logging of / alive requests from Varnish .
def call(env)
    if env['PATH_INFO'] == "/alive"
      old_level = Rails.logger.level
      Rails.logger.level = 1234567890              
      begin
        @app.call(env)                             
      ensure
        Rails.logger.level = old_level
      end
    else
      super(env)                                   
    end
  end
def call ( env ) if env [ 'PATH_INFO' ] == "/alive" old_level = Rails . logger . level Rails . logger . level = 1234567890 begin @app . call ( env ) ensure Rails . logger . level = old_level end else super ( env ) end end
Suppresses logging of /alive requests from Varnish.
Suppresses logging of / alive requests from Varnish .
# > 5 # returns [..., ..., ...] # returns [..., ..., ...]
env