From 8700aaaec582744a04af65eeff7e9ff8555b194a Mon Sep 17 00:00:00 2001 From: horus_arch Date: Mon, 19 Feb 2018 10:34:46 +0100 Subject: Changes log level while crawling from warning to info. (crawler) --- crawler/shop_whiskyde.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'crawler/shop_whiskyde.go') diff --git a/crawler/shop_whiskyde.go b/crawler/shop_whiskyde.go index 7ad7fd7..2df28fa 100644 --- a/crawler/shop_whiskyde.go +++ b/crawler/shop_whiskyde.go @@ -39,7 +39,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText("del") - WarnOffer(W, "Whisky.de: Converting original price failed") + PrintlnOffer(W, "Whisky.de: Converting original price failed") return } }) @@ -48,7 +48,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".article-price-default") - WarnOffer(W, "Whisky.de: Converting discounted price failed") + PrintlnOffer(W, "Whisky.de: Converting discounted price failed") return } }) @@ -66,7 +66,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot { if !strings.Contains(text_noisy, "Liter") { W.error_ctx = text_noisy W.error_msg = "Whisky.de: String 'Liter' not found." - WarnOffer(W, "Whisky.de: String 'Liter' not found.") + PrintlnOffer(W, "Whisky.de: String 'Liter' not found.") return } @@ -75,27 +75,27 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = text_noisy - WarnOffer(W, "Whisky.de: Extracting volume failed") + PrintlnOffer(W, "Whisky.de: Extracting volume failed") return } W.Abv, err = extract_abv(abv_noisy) if err != nil { W.error_msg = err.Error() W.error_ctx = abv_noisy - WarnOffer(W, "Whisky.de: Extracting abv failed") + PrintlnOffer(W, "Whisky.de: Extracting abv failed") return } if W.Volume == 0 { W.error_msg = "Whisky.de: Volume is zero" W.error_ctx = text_noisy - WarnOffer(W, "Whisky.de: Volume is zero") + PrintlnOffer(W, "Whisky.de: Volume is zero") return } if W.Abv == 0 { W.error_msg = "Whisky.de: Abv is zero" W.error_ctx = abv_noisy - WarnOffer(W, "Whisky.de: Abv is zero") + PrintlnOffer(W, "Whisky.de: Abv is zero") return } @@ -103,7 +103,7 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".article-unitprice-default") - WarnOffer(W, "Whisky.de: Converting base price failed") + PrintlnOffer(W, "Whisky.de: Converting base price failed") return } -- cgit v1.2.3