From feb10c15efcf0e278d1f0e8710b1df8d84bbf20c Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 3 May 2023 14:15:16 +0500 Subject: [PATCH] loglar --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()