summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-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
}