Skip to content

Commit

Permalink
chore(logs): add log message for total time taken to complete skaffol…
Browse files Browse the repository at this point in the history
…d dev loop

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
  • Loading branch information
idsulik committed Aug 19, 2024
1 parent d3902b1 commit 6221804
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/skaffold/runner/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*la
"devIteration": strconv.Itoa(r.devIteration),
})

devStart := time.Now()
// First build
var err error
bRes, err := r.Build(ctx, out, artifacts)
Expand Down Expand Up @@ -434,6 +435,7 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*la
}

log.Entry(ctx).Infoln("List generated in", timeutil.Humanize(time.Since(start)))
log.Entry(ctx).Infoln("Dev loop completed in", timeutil.Humanize(time.Since(devStart)))

// Init Sync State
if err := sync.Init(ctx, artifacts); err != nil {
Expand Down

0 comments on commit 6221804

Please sign in to comment.