summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyzone.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_whiskyzone.go
parentd17b21f91a7b0d94adb0002cc9c41137eee11389 (diff)
downloadalkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_whiskyzone.go')
-rw-r--r--crawler/shop_whiskyzone.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawler/shop_whiskyzone.go b/crawler/shop_whiskyzone.go
index f01e93f..eae0852 100644
--- a/crawler/shop_whiskyzone.go
+++ b/crawler/shop_whiskyzone.go
@@ -47,7 +47,7 @@ func (app *App) ScrapeWhiskyzone(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.Request.Ctx.Get("discounted_price")
- WarnOffer(W, "Whiskyzone: Convert discounted price failed")
+ PrintlnOffer(W, "Whiskyzone: Convert discounted price failed")
return
}
@@ -55,7 +55,7 @@ func (app *App) ScrapeWhiskyzone(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.Request.Ctx.Get("original_price")
- WarnOffer(W, "Whiskyzone: Convert original price failed")
+ PrintlnOffer(W, "Whiskyzone: Convert original price failed")
return
}
@@ -64,14 +64,14 @@ func (app *App) ScrapeWhiskyzone(shop Shop) []Angebot {
if W.Volume == 0 {
W.error_msg = "Whiskyzone: Volume is zero"
W.error_ctx = ctx
- WarnOffer(W, "Whiskyzone: Volume is zero")
+ PrintlnOffer(W, "Whiskyzone: Volume is zero")
return
}
W.Abv, ctx = get_abv(e)
if W.Abv == 0 {
W.error_msg = "Whiskyzone: Abv is zero"
W.error_ctx = ctx
- WarnOffer(W, "Whiskyzone: Abv is zero")
+ PrintlnOffer(W, "Whiskyzone: Abv is zero")
return
}
@@ -83,7 +83,7 @@ func (app *App) ScrapeWhiskyzone(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = base_price
- WarnOffer(W, "Whiskyzone: Extracting base price failed")
+ PrintlnOffer(W, "Whiskyzone: Extracting base price failed")
return
}
}