commands: Do not print build total when --quiet is set

Fixes #4456
This commit is contained in:
Bjørn Erik Pedersen 2018-02-27 21:04:39 +01:00
parent ba94abbf5d
commit 50a03a5acc
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -776,6 +776,9 @@ func (c *commandeer) copyStaticTo(dirs *src.Dirs, publishDir string) (uint64, er
}
func (c *commandeer) timeTrack(start time.Time, name string) {
if quiet {
return
}
elapsed := time.Since(start)
c.Logger.FEEDBACK.Printf("%s in %v ms", name, int(1000*elapsed.Seconds()))
}