Separate io.Writer from console.File for NewPrinter

Signed-off-by: Edgar Lee <edgarl@netflix.com>
This commit is contained in:
Edgar Lee
2022-02-05 13:57:33 -08:00
parent 595285736c
commit 2d7540fb0a
4 changed files with 4 additions and 5 deletions

View File

@ -414,7 +414,7 @@ func boot(ctx context.Context, ngi *nginfo) (bool, error) {
return false, nil
}
printer := progress.NewPrinter(context.TODO(), os.Stderr, "auto")
printer := progress.NewPrinter(context.TODO(), os.Stderr, os.Stderr, "auto")
baseCtx := ctx
eg, _ := errgroup.WithContext(ctx)