loglar
This commit is contained in:
parent
5f78c4915f
commit
feb10c15ef
5
main.go
5
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue