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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 18:14:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 18:14:05 +0300
commit49b16b71778148e9f9c579bf7bf69853c780c827 (patch)
tree48fe268b98795b8e2af1fa0b40ee5b67b35a4479 /lib/gitlab/loggable.rb
parent9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/loggable.rb')
-rw-r--r--lib/gitlab/loggable.rb11
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