diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 18:14:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 18:14:05 +0300 |
commit | 49b16b71778148e9f9c579bf7bf69853c780c827 (patch) | |
tree | 48fe268b98795b8e2af1fa0b40ee5b67b35a4479 /lib/gitlab/loggable.rb | |
parent | 9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/loggable.rb')
-rw-r--r-- | lib/gitlab/loggable.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/loggable.rb b/lib/gitlab/loggable.rb new file mode 100644 index 00000000000..393e3eb37b6 --- /dev/null +++ b/lib/gitlab/loggable.rb @@ -0,0 +1,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 |