aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-04-20 15:36:54 +0200
committerBjørn Erik Pedersen <[email protected]>2024-05-01 10:52:40 +0200
commitc8e400b621ea7d44e522fb9bfa66d992ccb9ca84 (patch)
tree909a5000f582792756bf5b75fba13ef362a3cfe7 /hugolib
parent9dd687027f2b37bdb94d51fed403066b9f7b9a45 (diff)
downloadhugo-c8e400b621ea7d44e522fb9bfa66d992ccb9ca84.tar.gz
hugo-c8e400b621ea7d44e522fb9bfa66d992ccb9ca84.zip
commands: Print "Webserver is ..." right before "Total ..."
Also fix it so * It's not printed when running `hugo -w` * It'd printed for all kinds of rebuilds Fixes #12384
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/hugo_sites_build.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 3beb072e3..a4546ff44 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -951,12 +951,10 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf
}
}
- h.logServerAddresses()
-
return nil
}
-func (h *HugoSites) logServerAddresses() {
+func (h *HugoSites) LogServerAddresses() {
if h.hugoInfo.IsMultihost() {
for _, s := range h.Sites {
h.Log.Printf("Web Server is available at %s (bind address %s) %s\n", s.conf.C.BaseURL, s.conf.C.ServerInterface, s.Language().Lang)