debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/cloudflare_logger.rb
2020-05-24 23:13:21 +05:30

18 lines
370 B
Ruby

# frozen_string_literal: true
module Gitlab
module GrapeLogging
module Loggers
class CloudflareLogger < ::GrapeLogging::Loggers::Base
include ::Gitlab::Logging::CloudflareHelper
def parameters(request, _response)
data = {}
store_cloudflare_headers!(data, request)
data
end
end
end
end
end