From 4bd22523d43e72cd45582df4a9b73017620ccc7a Mon Sep 17 00:00:00 2001 From: demo Date: Mon, 11 May 2026 12:30:41 -0400 Subject: chore: add some extra logging --- internal/links/find.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/links/find.go') diff --git a/internal/links/find.go b/internal/links/find.go index 6e1ab63..b825b1e 100644 --- a/internal/links/find.go +++ b/internal/links/find.go @@ -65,6 +65,7 @@ func findHrefs(doc *html.Node) []string { // to build a sitemap, the crawl should never leave the top-level Web // domain those pages belong to. func filterByBaseURL(refURL *url.URL, hrefs []string) []string { + log.Printf("Using reference URL %s", refURL) var neighbors []string for _, href := range hrefs { @@ -86,5 +87,7 @@ func filterByBaseURL(refURL *url.URL, hrefs []string) []string { neighbors = append(neighbors, href) } + log.Printf("neighbors: %v", neighbors) + return neighbors } -- cgit v1.2.3