log: count forwards in the reload message, not just exhibits
commit a4fa43a1299956dcaff3f61d3d33cf8ea2dd354c · parent 964f50d4cb
· browse this tree
Ximianth, 2026-08-14 17:07:10 UTC
Noticed live: "config reloaded: 1 exhibits" while a root forward had just landed and taken over the port -- the log understated the most consequential part of the change.
diff --git a/main.go b/main.go index dd0f22e..b46b007 100644 --- a/main.go +++ b/main.go @@ -66,5 +66,5 @@ func reloadConfig(srv *server, path string) { return } srv.setMounts(cfg) - log.Printf("config reloaded: %d exhibits", len(cfg.Exhibits)) + log.Printf("config reloaded: %d exhibits, %d forwards", len(cfg.Exhibits), len(cfg.Forwards)) }