2020-05-24 23:13:21 +05:30
|
|
|
# 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(_, _)
|
2021-04-29 21:17:54 +05:30
|
|
|
Gitlab::ApplicationContext.current
|
2020-05-24 23:13:21 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|