From e721c44ddf234ed147ccd52e40f83740ebd752db Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 11 Dec 2024 11:14:09 -0500 Subject: [PATCH] drop spammy slog attributes Signed-off-by: Jason Hall --- pkg/build/pipeline.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/build/pipeline.go b/pkg/build/pipeline.go index aa821b950..07aa1ada4 100644 --- a/pkg/build/pipeline.go +++ b/pkg/build/pipeline.go @@ -237,17 +237,6 @@ func (r *pipelineRunner) runPipeline(ctx context.Context, pipeline *config.Pipel log.Infof("running step %q", id) } - slogs := []any{} - if pipeline.Name != "" { - slogs = append(slogs, "name", pipeline.Name) - } - if pipeline.Uses != "" { - slogs = append(slogs, "uses", pipeline.Uses) - } - if len(slogs) != 0 { - ctx = clog.WithLogger(ctx, log.With(slogs...)) - } - command := buildEvalRunCommand(pipeline, debugOption, workdir, pipeline.Runs) if err := r.runner.Run(ctx, r.config, envOverride, command...); err != nil { if err := r.maybeDebug(ctx, pipeline.Runs, envOverride, command, workdir, err); err != nil {