mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
committed by
GitHub
parent
95a3678245
commit
24eb84f868
@@ -42,6 +42,7 @@ import (
|
||||
"github.com/gohugoio/hugo/common/hsync"
|
||||
"github.com/gohugoio/hugo/common/htime"
|
||||
"github.com/gohugoio/hugo/common/hugo"
|
||||
"github.com/gohugoio/hugo/common/loggers"
|
||||
"github.com/gohugoio/hugo/common/para"
|
||||
"github.com/gohugoio/hugo/common/terminal"
|
||||
"github.com/gohugoio/hugo/common/types"
|
||||
@@ -526,6 +527,9 @@ func (h *HugoSites) reset() {
|
||||
// resetLogs resets the log counters etc. Used to do a new build on the same sites.
|
||||
func (h *HugoSites) resetLogs() {
|
||||
h.Log.Reset()
|
||||
loggers.Log().Reset()
|
||||
|
||||
// TODO(bep) Double-check this; I'm pretty sure there is only one logger.
|
||||
for _, s := range h.Sites {
|
||||
s.Deps.Log.Reset()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user