summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyde.go
diff options
context:
space:
mode:
authorhorus_arch2018-02-19 10:34:46 +0100
committerhorus_arch2018-02-19 10:34:46 +0100
commit8700aaaec582744a04af65eeff7e9ff8555b194a (patch)
tree572f6b19f0f6170b34e075aa2c5e2fd6fd07c175 /crawler/shop_whiskyde.go
parentd17b21f91a7b0d94adb0002cc9c41137eee11389 (diff)
downloadalkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_whiskyde.go')
-rw-r--r--crawler/shop_whiskyde.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawler/shop_whiskyde.go b/crawler/shop_whiskyde.go
index 7ad7fd7..2df28fa 100644
--- a/crawler/shop_whiskyde.go
+++ b/crawler/shop_whiskyde.go
@@ -39,7 +39,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText("del")
- WarnOffer(W, "Whisky.de: Converting original price failed")
+ PrintlnOffer(W, "Whisky.de: Converting original price failed")
return
}
})
@@ -48,7 +48,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".article-price-default")
- WarnOffer(W, "Whisky.de: Converting discounted price failed")
+ PrintlnOffer(W, "Whisky.de: Converting discounted price failed")
return
}
})
@@ -66,7 +66,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
if !strings.Contains(text_noisy, "Liter") {
W.error_ctx = text_noisy
W.error_msg = "Whisky.de: String 'Liter' not found."
- WarnOffer(W, "Whisky.de: String 'Liter' not found.")
+ PrintlnOffer(W, "Whisky.de: String 'Liter' not found.")
return
}
@@ -75,27 +75,27 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = text_noisy
- WarnOffer(W, "Whisky.de: Extracting volume failed")
+ PrintlnOffer(W, "Whisky.de: Extracting volume failed")
return
}
W.Abv, err = extract_abv(abv_noisy)
if err != nil {
W.error_msg = err.Error()
W.error_ctx = abv_noisy
- WarnOffer(W, "Whisky.de: Extracting abv failed")
+ PrintlnOffer(W, "Whisky.de: Extracting abv failed")
return
}
if W.Volume == 0 {
W.error_msg = "Whisky.de: Volume is zero"
W.error_ctx = text_noisy
- WarnOffer(W, "Whisky.de: Volume is zero")
+ PrintlnOffer(W, "Whisky.de: Volume is zero")
return
}
if W.Abv == 0 {
W.error_msg = "Whisky.de: Abv is zero"
W.error_ctx = abv_noisy
- WarnOffer(W, "Whisky.de: Abv is zero")
+ PrintlnOffer(W, "Whisky.de: Abv is zero")
return
}
@@ -103,7 +103,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".article-unitprice-default")
- WarnOffer(W, "Whisky.de: Converting base price failed")
+ PrintlnOffer(W, "Whisky.de: Converting base price failed")
return
}