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_rumundco.go | |
| parent | d17b21f91a7b0d94adb0002cc9c41137eee11389 (diff) | |
| download | alkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz | |
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_rumundco.go')
| -rw-r--r-- | crawler/shop_rumundco.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go index 30c8765..1ce202f 100644 --- a/crawler/shop_rumundco.go +++ b/crawler/shop_rumundco.go @@ -40,7 +40,7 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if !matched { W.error_msg = "Rum & Co: Offer not available" W.error_ctx = e.ChildText(".delivery-status") - WarnOffer(W, "Rum & Co: Offer not available") + PrintlnOffer(W, "Rum & Co: Offer not available") return } @@ -58,21 +58,21 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if "" == regular_price { W.error_msg = "Rum & Co: No regular price found" W.error_ctx = regular_price - WarnOffer(W, "Rum & Co: No regular price found") + PrintlnOffer(W, "Rum & Co: No regular price found") return } W.Original_price, err = convert_price(regular_price) if err != nil { W.error_msg = err.Error() W.error_ctx = regular_price - WarnOffer(W, "Rum & Co: Original price: Convert price failed") + PrintlnOffer(W, "Rum & Co: Original price: Convert price failed") return } W.Discounted_price, err = convert_price(e.ChildText(".price-value")) if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".price-value") - WarnOffer(W, "Rum & Co: Discounted price: Convert price failed") + PrintlnOffer(W, "Rum & Co: Discounted price: Convert price failed") return } @@ -82,7 +82,7 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".value") - WarnOffer(W, "Rum & Co: Base price: Sanitizing base price failed") + PrintlnOffer(W, "Rum & Co: Base price: Sanitizing base price failed") return } }) @@ -101,7 +101,7 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if len(image_url_noisy_slice) < 2 { W.error_msg = "Rum & Co: (Pagespeed) Image URL not found" W.error_ctx = image_url_noisy - WarnOffer(W, "Rum & Co: (Pagespeed) Image URL not found") + PrintlnOffer(W, "Rum & Co: (Pagespeed) Image URL not found") return } image_url_noisy = strings.Replace(image_url_noisy, image_url_noisy_slice[1], "", 1) @@ -117,7 +117,7 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if W.Volume == 0 { W.error_msg = "Rum & Co: Volume is zero" W.error_ctx = ctx - WarnOffer(W, "Rum & Co: Volume is zero") + PrintlnOffer(W, "Rum & Co: Volume is zero") return } @@ -129,14 +129,14 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = abv_noisy - WarnOffer(W, "Rum & Co: Base price: Extracting ABV failed") + PrintlnOffer(W, "Rum & Co: Base price: Extracting ABV failed") return } } if W.Abv == 0 { W.error_msg = "Rum & Co: Abv is zero" W.error_ctx = abv_noisy - WarnOffer(W, "Rum & Co: Abv is zero") + PrintlnOffer(W, "Rum & Co: Abv is zero") return } W.Website = e.Request.Ctx.Get("website") |
