summaryrefslogtreecommitdiff
path: root/crawler/shop_whic.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_whic.go
parentd17b21f91a7b0d94adb0002cc9c41137eee11389 (diff)
downloadalkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_whic.go')
-rw-r--r--crawler/shop_whic.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawler/shop_whic.go b/crawler/shop_whic.go
index b5ff1af..a199b2c 100644
--- a/crawler/shop_whic.go
+++ b/crawler/shop_whic.go
@@ -41,7 +41,7 @@ func (app *App) ScrapeWhic(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- WarnOffer(W, "Whic: Converting original price failed")
+ PrintlnOffer(W, "Whic: Converting original price failed")
return
}
})
@@ -50,7 +50,7 @@ func (app *App) ScrapeWhic(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- WarnOffer(W, "Whic: Converting discounted price failed")
+ PrintlnOffer(W, "Whic: Converting discounted price failed")
return
}
})
@@ -61,7 +61,7 @@ func (app *App) ScrapeWhic(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = base_price_noisy
- WarnOffer(W, "Whic: Sanitizing base price failed")
+ PrintlnOffer(W, "Whic: Sanitizing base price failed")
return
}
@@ -85,14 +85,14 @@ func (app *App) ScrapeWhic(shop Shop) []Angebot {
if W.Volume == 0 {
W.error_msg = "Whic: Volume is zero"
W.error_ctx = ctx
- WarnOffer(W, "Whic: Volume is zero")
+ PrintlnOffer(W, "Whic: Volume is zero")
return
}
W.Abv, ctx = get_abv(e)
if W.Abv == 0 {
W.error_msg = "Whic: Abv is zero"
W.error_ctx = ctx
- WarnOffer(W, "Whic: Abv is zero")
+ PrintlnOffer(W, "Whic: Abv is zero")
return
}