Merge pull request #1282 from AkihiroSuda/dismiss-progressbar-on-debug
ctr: dismiss progressbar on --debug
This commit is contained in:
commit
7e0063320c
@ -69,7 +69,10 @@ func fetch(ctx context.Context, ref string, clicontext *cli.Context) (containerd
|
||||
progress := make(chan struct{})
|
||||
|
||||
go func() {
|
||||
if !clicontext.GlobalBool("debug") {
|
||||
// no progress bar, because it hides some debug logs
|
||||
showProgress(pctx, ongoing, client.ContentStore(), os.Stdout)
|
||||
}
|
||||
close(progress)
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user