feat(agent): log agent version on startup (#5724)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
Utkarsh9571
2025-11-06 21:28:36 +05:30
committed by GitHub
parent 02ea16ecbf
commit b2b4583de0

View File

@@ -65,6 +65,8 @@ var (
)
func run(ctx context.Context, c *cli.Command, backends []types.Backend) error {
log.Info().Str("version", version.Version).Msg("Starting Woodpecker agent")
agentCtx, ctxCancel := context.WithCancelCause(ctx)
stopAgentFunc = func(err error) {
msg := "shutdown of whole agent"