Merge pull request #1282 from AkihiroSuda/dismiss-progressbar-on-debug

ctr: dismiss progressbar on --debug
This commit is contained in:
Phil Estes
2017-08-04 11:51:17 -04:00
committed by GitHub

View File

@@ -69,7 +69,10 @@ func fetch(ctx context.Context, ref string, clicontext *cli.Context) (containerd
progress := make(chan struct{})
go func() {
showProgress(pctx, ongoing, client.ContentStore(), os.Stdout)
if !clicontext.GlobalBool("debug") {
// no progress bar, because it hides some debug logs
showProgress(pctx, ongoing, client.ContentStore(), os.Stdout)
}
close(progress)
}()