Skip to content

Commit

Permalink
Merge pull request #1794 from jedevc/fix-printer-start-race
Browse files Browse the repository at this point in the history
  • Loading branch information
jedevc authored May 12, 2023
2 parents 31d1b77 + be65429 commit 060ac84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/progress/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ func NewPrinter(ctx context.Context, w io.Writer, out console.File, mode string,
pw.logSourceMap = map[digest.Digest]interface{}{}
pw.logMu.Unlock()

close(pw.ready)

resumeLogs := logutil.Pause(logrus.StandardLogger())
close(pw.ready)
// not using shared context to not disrupt display but let is finish reporting errors
pw.warnings, pw.err = progressui.DisplaySolveStatus(ctx, c, w, pw.status, opt.displayOpts...)
resumeLogs()
Expand Down

0 comments on commit 060ac84

Please sign in to comment.