debian-mirror-gitlab/lib/gitlab/loggable.rb

12 lines
230 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# frozen_string_literal: true
module Gitlab
module Loggable
ANONYMOUS = '<Anonymous>'
def build_structured_payload(**params)
{ class: self.class.name || ANONYMOUS }.merge(params).stringify_keys
end
end
end