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