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_mcwhisky.go | |
| parent | d17b21f91a7b0d94adb0002cc9c41137eee11389 (diff) | |
| download | alkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz | |
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_mcwhisky.go')
| -rw-r--r-- | crawler/shop_mcwhisky.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawler/shop_mcwhisky.go b/crawler/shop_mcwhisky.go index 87d822e..cea020a 100644 --- a/crawler/shop_mcwhisky.go +++ b/crawler/shop_mcwhisky.go @@ -40,7 +40,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".price") - WarnOffer(W, "MC Whisky: Converting original price failed") + PrintlnOffer(W, "MC Whisky: Converting original price failed") return } }) @@ -49,7 +49,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = e.ChildText(".price") - WarnOffer(W, "MC Whisky: Converting discounted price failed") + PrintlnOffer(W, "MC Whisky: Converting discounted price failed") return } }) @@ -60,7 +60,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = price_per_litre_noisy - WarnOffer(W, "MC Whisky: Sanitizing base price failed") + PrintlnOffer(W, "MC Whisky: Sanitizing base price failed") return } @@ -72,14 +72,14 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { if volume_failed != "" { W.error_msg = "MC Whisky: Volume failed" W.error_ctx = volume_failed - WarnOffer(W, "MC Whisky: Volume failed") + PrintlnOffer(W, "MC Whisky: Volume failed") return } abv_failed := e.Request.Ctx.Get("abv_failed") if volume_failed != "" { W.error_msg = "MC Whisky: Abv failed" W.error_ctx = abv_failed - WarnOffer(W, "MC Whisky: Abv failed") + PrintlnOffer(W, "MC Whisky: Abv failed") return } @@ -88,14 +88,14 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { if W.Volume == 0 { W.error_msg = "MC Whisky: Volume is zero" W.error_ctx = ctx - WarnOffer(W, "MC Whisky: Volume is zero") + PrintlnOffer(W, "MC Whisky: Volume is zero") return } W.Abv, ctx = get_abv(e) if W.Abv == 0 { W.error_msg = "MC Whisky: Abv is zero" W.error_ctx = ctx - WarnOffer(W, "MC Whisky: Abv is zero") + PrintlnOffer(W, "MC Whisky: Abv is zero") return } |
