diff --git a/executor/linux/stage.go b/executor/linux/stage.go index a429442e..62660970 100644 --- a/executor/linux/stage.go +++ b/executor/linux/stage.go @@ -10,7 +10,6 @@ import ( "github.com/go-vela/types/constants" "github.com/go-vela/types/pipeline" "github.com/go-vela/worker/internal/step" - "github.com/sirupsen/logrus" ) // CreateStage prepares the stage for execution. @@ -142,7 +141,6 @@ func (c *client) ExecStage(ctx context.Context, s *pipeline.Stage, m *sync.Map) // // https://pkg.go.dev/github.com/go-vela/worker/internal/step#Skip if step.Skip(_step, c.build, c.repo) { - logrus.Infof("Skipping step %s due to ruleset", _step.Name) continue } diff --git a/executor/local/stage.go b/executor/local/stage.go index 5a920b7b..a6328a3d 100644 --- a/executor/local/stage.go +++ b/executor/local/stage.go @@ -9,6 +9,7 @@ import ( "github.com/go-vela/types/pipeline" "github.com/go-vela/worker/internal/step" + "github.com/sirupsen/logrus" ) // create a stage logging pattern. @@ -90,6 +91,7 @@ func (c *client) ExecStage(ctx context.Context, s *pipeline.Stage, m *sync.Map) // // https://pkg.go.dev/github.com/go-vela/worker/internal/step#Skip if step.Skip(_step, c.build, c.repo) { + logrus.Infof("Skipping step %s due to ruleset", _step.Name) continue }