debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/content_logger.rb
2021-01-30 21:13:34 +05:30

16 lines
371 B
Ruby

# 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