diff --git a/main.go b/main.go index b0e2652..96fc1f7 100644 --- a/main.go +++ b/main.go @@ -84,10 +84,13 @@ func worker(importer *repositories.Importer, stopCh <-chan struct{}, updatePerio if err != nil { log.Println("Error retrieving products:", err) continue + } else { + log.Println(len(result)) } // Update products as needed - for _, product := range result { + for index, product := range result { + log.Printf("NO: %d, URL: %s", index, product.TextValue) // Retrieve the latest information from the source URL parser := repositories.NewLinkParser(product.TextValue) data, err := parser.ParseLink()