Commit 1ba3f648 authored by Fabio Pitino's avatar Fabio Pitino

Merge branch 'feature/gb/log-pipeline-logger-class-name' into 'master'

Add pipeline logger class name to logged payload

See merge request gitlab-org/gitlab!75734
parents 656b9eb8 0d5afdb7
...@@ -47,6 +47,7 @@ module Gitlab ...@@ -47,6 +47,7 @@ module Gitlab
return unless log? return unless log?
attributes = { attributes = {
class: self.class.name.to_s,
pipeline_creation_caller: caller, pipeline_creation_caller: caller,
project_id: project.id, project_id: project.id,
pipeline_id: pipeline.id, pipeline_id: pipeline.id,
......
...@@ -71,6 +71,7 @@ RSpec.describe ::Gitlab::Ci::Pipeline::Logger do ...@@ -71,6 +71,7 @@ RSpec.describe ::Gitlab::Ci::Pipeline::Logger do
let(:loggable_data) do let(:loggable_data) do
{ {
'class' => described_class.name.to_s,
'pipeline_id' => pipeline.id, 'pipeline_id' => pipeline.id,
'pipeline_persisted' => true, 'pipeline_persisted' => true,
'project_id' => project.id, 'project_id' => project.id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment