summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyworld.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_whiskyworld.go
parentd17b21f91a7b0d94adb0002cc9c41137eee11389 (diff)
downloadalkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_whiskyworld.go')
-rw-r--r--crawler/shop_whiskyworld.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawler/shop_whiskyworld.go b/crawler/shop_whiskyworld.go
index 6306f6f..0f39db7 100644
--- a/crawler/shop_whiskyworld.go
+++ b/crawler/shop_whiskyworld.go
@@ -47,7 +47,7 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = regular_price
- WarnOffer(W, "Whiskyworld: Converting original price failed")
+ PrintlnOffer(W, "Whiskyworld: Converting original price failed")
return
}
@@ -55,7 +55,7 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".uvp")
- WarnOffer(W, "Whiskyworld: Converting discounted price failed")
+ PrintlnOffer(W, "Whiskyworld: Converting discounted price failed")
return
}
@@ -65,13 +65,13 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = text_noisy
- WarnOffer(W, "Whiskyworld: Extracting volume failed")
+ PrintlnOffer(W, "Whiskyworld: Extracting volume failed")
return
}
if W.Volume == 0 {
W.error_msg = "Whiskyworld: Volume is zero"
W.error_ctx = text_noisy
- WarnOffer(W, "Whiskyworld: Volume is zero")
+ PrintlnOffer(W, "Whiskyworld: Volume is zero")
return
}
abv_noisy := strings.TrimSpace(strings.SplitAfter(text_noisy, "Liter")[1])
@@ -80,13 +80,13 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = abv_noisy
- WarnOffer(W, "Whiskyworld: Extracting abv failed")
+ PrintlnOffer(W, "Whiskyworld: Extracting abv failed")
return
}
if W.Abv == 0 {
W.error_msg = "Whiskyworld: Abv is zero"
W.error_ctx = abv_noisy
- WarnOffer(W, "Whiskyworld: Abv is zero")
+ PrintlnOffer(W, "Whiskyworld: Abv is zero")
return
}
})
@@ -99,7 +99,7 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = base_price_noisy
- WarnOffer(W, "Whiskyworld: Sanitizing base price failed")
+ PrintlnOffer(W, "Whiskyworld: Sanitizing base price failed")
return
}
}