module Shhhhh
  class Middleware < Rails::Rack::Logger
    protected

    def call_app(request, env)
      # if the path looks like /assets/some/script.js, don't bother logging
      # just move on
      if env['PATH_INFO'] =~ /\A\/assets\/
        @app.call(env)
      else
        super(request, env)
      end

      ensure
        ActiveSupport::LogSubscriber.flush_all!
    end
  end
end

module Shhhhh
  class Middleware < Rails::Rack::Logger
    protected

    def call_app(request, env)
      # if the path looks like /assets/some/script.js, don't bother logging
      if env['PATH_INFO'] =~ /\A\/assets\//
        @app.call(env)
      else
        super
      end

      ensure
        ActiveSupport::LogSubscriber.flush_all!
    end
  end
end

Remove a comment and modify the super call
Remove a comment and modify the super call

* Passing the arguments here doesn't
have to be explicit.
