Welcome to mirror list, hosted at ThFree Co, Russian Federation.

content_logger.rb « loggers « grape_logging « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 658953adc80e07f6ea4382ef0ea2a8549463f9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Gitlab
  module GrapeLogging
    module Loggers
      class ContentLogger < ::GrapeLogging::Loggers::Base
        def parameters(request, _)
          {
            content_length: request.env['CONTENT_LENGTH'],
            content_range: request.env['HTTP_CONTENT_RANGE']
          }.compact
        end
      end
    end
  end
end