do not use \r in -quiet mode when printing status messages
parent
ff6207d200
commit
dab06de51c
|
@ -210,9 +210,15 @@ func (l *LogBroker) printRecord(record Record) {
|
||||||
func (l *LogBroker) printProgress(progress string) {
|
func (l *LogBroker) printProgress(progress string) {
|
||||||
l.printPrefix()
|
l.printPrefix()
|
||||||
fmt.Print(progress)
|
fmt.Print(progress)
|
||||||
fmt.Print("\r")
|
if l.quiet {
|
||||||
l.lastProgress = progress
|
fmt.Print("\n")
|
||||||
l.newline = false
|
l.lastProgress = ""
|
||||||
|
l.newline = true
|
||||||
|
} else {
|
||||||
|
fmt.Print("\r")
|
||||||
|
l.lastProgress = progress
|
||||||
|
l.newline = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Shutdown() {
|
func Shutdown() {
|
||||||
|
|
Loading…
Reference in New Issue