Skip to content

Commit

Permalink
commands: Do not print build total when --quiet is set
Browse files Browse the repository at this point in the history
Fixes #4456
  • Loading branch information
bep committed Feb 27, 2018
1 parent ba94abb commit 50a03a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
Expand Down

0 comments on commit 50a03a5

Please sign in to comment.