Skip to content

Commit

Permalink
enhance(init): display basic worker info in init step logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Sep 19, 2023
1 parent bb0406d commit 1cecf33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/linux/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (c *client) PlanBuild(ctx context.Context) error {
return err
}

// put worker information into init logs
_log.AppendData([]byte(fmt.Sprintf("> Worker Information:\n Host: %s\n Version: %s\n Runtime: %s\n", c.Hostname, c.Version, c.Runtime.Driver())))

// defer taking a snapshot of the init step
//
// https://pkg.go.dev/github.com/go-vela/worker/internal/step#SnapshotInit
Expand Down

0 comments on commit 1cecf33

Please sign in to comment.