Welcome to mirror list, hosted at ThFree Co, Russian Federation.

loggable.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 393e3eb37b619aba05cc8735602af791073335d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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