summaryrefslogtreecommitdiff
path: root/crawler/scrape.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/scrape.go')
-rw-r--r--crawler/scrape.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawler/scrape.go b/crawler/scrape.go
index 18736fe..ced1d98 100644
--- a/crawler/scrape.go
+++ b/crawler/scrape.go
@@ -1,7 +1,7 @@
package main
import (
- "log"
+ log "github.com/Sirupsen/logrus"
)
func (app *App) ScrapeHTML(shops []Shop) {
@@ -34,11 +34,11 @@ func (app *App) Scrape(shop Shop, wait chan bool) {
err = app.save_offer(W)
if err != nil {
- log.Fatal(err)
+ Fatal(err, "Saving offers failed")
}
- err = app.remove_expired(W, shop.Id)
+ err = app.remove_expired(W, shop)
if err != nil {
- log.Fatal(err)
+ Fatal(err, "Removing expired offers failed")
}
wait <- true