cli: 'snapshot create' switched all stderr output to use logger (#663)

This allows 'kopia snap create --all --log-level=warning --no-progress'
to produce no console output unless an error is encountered.
This commit is contained in:
Jarek Kowalski
2020-10-05 17:28:00 -07:00
committed by GitHub
parent d08c052651
commit 4fd0bcf7dc
2 changed files with 8 additions and 5 deletions

View File

@@ -252,6 +252,10 @@ func (p *cliProgress) Finish() {
atomic.StoreInt32(&p.uploading, 0)
p.output(defaultColor, "")
if *enableProgress {
printStderr("\n")
}
}
var progress = &cliProgress{}