From 1cecf33c912261b5c0e1979e0767f956a1e796ea Mon Sep 17 00:00:00 2001 From: ecrupper Date: Tue, 19 Sep 2023 09:32:20 -0500 Subject: [PATCH] enhance(init): display basic worker info in init step logs --- executor/linux/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/executor/linux/build.go b/executor/linux/build.go index cb55d5be..fdf6a69f 100644 --- a/executor/linux/build.go +++ b/executor/linux/build.go @@ -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