diff options
| author | horus_arch | 2018-02-19 10:34:46 +0100 |
|---|---|---|
| committer | horus_arch | 2018-02-19 10:34:46 +0100 |
| commit | 8700aaaec582744a04af65eeff7e9ff8555b194a (patch) | |
| tree | 572f6b19f0f6170b34e075aa2c5e2fd6fd07c175 /crawler/shop_bottleworld.go | |
| parent | d17b21f91a7b0d94adb0002cc9c41137eee11389 (diff) | |
| download | alkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz | |
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_bottleworld.go')
| -rw-r--r-- | crawler/shop_bottleworld.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawler/shop_bottleworld.go b/crawler/shop_bottleworld.go index 0057bff..b92896d 100644 --- a/crawler/shop_bottleworld.go +++ b/crawler/shop_bottleworld.go @@ -36,7 +36,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".price") - WarnOffer(W, "Bottleworld: Converting original price failed") + PrintlnOffer(W, "Bottleworld: Converting original price failed") return } }) @@ -45,7 +45,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".price") - WarnOffer(W, "Bottleworld: Converting discounted price failed") + PrintlnOffer(W, "Bottleworld: Converting discounted price failed") return } }) @@ -56,7 +56,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = price_per_litre_noisy - WarnOffer(W, "Bottleworld: Sanitizing base price failed") + PrintlnOffer(W, "Bottleworld: Sanitizing base price failed") return } W.Base_price = price_per_litre @@ -70,14 +70,14 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { if W.Volume == 0 { W.error_msg = "Bottleworld: Volume is zero" W.error_ctx = ctx - WarnOffer(W, "Bottleworld: Volume is zero") + PrintlnOffer(W, "Bottleworld: Volume is zero") return } W.Abv, ctx = get_abv(e) if W.Abv == 0 { W.error_msg = "Bottleworld: Abv is zero" W.error_ctx = ctx - WarnOffer(W, "Bottleworld: Abv is zero") + PrintlnOffer(W, "Bottleworld: Abv is zero") return } |
