debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/context_logger.rb
2021-04-29 21:17:54 +05:30

15 lines
320 B
Ruby

# 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