summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-11 12:30:41 -0400
committerdemo <demo@antix1>2026-05-11 12:30:41 -0400
commit4bd22523d43e72cd45582df4a9b73017620ccc7a (patch)
tree340c752cc444e992408583035adb60fc8059a4af
parent7eb14c2fb338870d2aef6ddff3cb190dff302a46 (diff)
chore: add some extra logging
-rw-r--r--internal/links/find.go3
1 files changed, 3 insertions, 0 deletions
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
}