commands: Report build time on config.toml change
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 6 Jan 2018 09:54:16 +0000 (10:54 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 6 Jan 2018 09:54:16 +0000 (10:54 +0100)
Fixes #4232
See #4224

commands/hugo.go

index 7f0b6cd051da265a1639784a57a8313302bca34e..0e7b755f79b9bc2b9457f9971082f1a7261b97f4 100644 (file)
@@ -892,6 +892,7 @@ func (c *commandeer) getDirList() ([]string, error) {
 }
 
 func (c *commandeer) recreateAndBuildSites(watching bool) (err error) {
+       defer c.timeTrack(time.Now(), "Total")
        if err := c.initSites(); err != nil {
                return err
        }