15 lines
314 B
Ruby
15 lines
314 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(_, _)
|
||
|
Labkit::Context.current.to_h
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|