summaryrefslogtreecommitdiff
path: root/lib/gitlab/grape_logging/loggers/context_logger.rb
blob: 468a296886eb1d92c3b6511eb6635e853e623699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

# This module adds additional correlation id the grape logger
module Gitlab
  module GrapeLogging
    module Loggers
      class ContextLogger < ::GrapeLogging::Loggers::Base
        def parameters(_, _)
          Gitlab::ApplicationContext.current
        end
      end
    end
  end
end