From 24eb84f8681bc86a40c2b737969fb9b8292f26b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 6 Feb 2026 15:06:19 +0100 Subject: [PATCH] server: Fix stuck server global error logging Fixes #14469 --- hugolib/hugo_sites.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index ced4715cb..2cb0b4f42 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -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() } -- 2.39.5