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_whiskysitenl.go | |
| parent | d17b21f91a7b0d94adb0002cc9c41137eee11389 (diff) | |
| download | alkobote-8700aaaec582744a04af65eeff7e9ff8555b194a.tar.gz | |
Changes log level while crawling from warning to info. (crawler)
Diffstat (limited to 'crawler/shop_whiskysitenl.go')
| -rw-r--r-- | crawler/shop_whiskysitenl.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawler/shop_whiskysitenl.go b/crawler/shop_whiskysitenl.go index e410445..f1b667c 100644 --- a/crawler/shop_whiskysitenl.go +++ b/crawler/shop_whiskysitenl.go @@ -47,14 +47,14 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot { if err != nil { W.error_msg = err.Error() W.error_ctx = regular_price - WarnOffer(W, "Whiskysite.nl: Extracting original price failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting original price failed") return } W.Discounted_price, err = convert_price(discounted_price) if err != nil { W.error_msg = err.Error() W.error_ctx = discounted_price - WarnOffer(W, "Whiskysite.nl: Extracting discounted price failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting discounted price failed") return } @@ -66,13 +66,13 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot { if volume_failed != "" { W.error_msg = "Whiskysite.nl: Extracting volume via Liter-Regex failed" W.error_ctx = volume_failed - WarnOffer(W, "Whiskysite.nl: Extracting volume via Liter-Regex failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting volume via Liter-Regex failed") return } if e.Request.Ctx.Get("abv_failed") != "" { W.error_msg = "Whiskysite.nl: Extracting abv via Abv-Regex failed" W.error_ctx = e.Request.Ctx.Get("volume_failed") - WarnOffer(W, "Whiskysite.nl: Extracting abv via Abv-Regex failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting abv via Abv-Regex failed") return } @@ -81,14 +81,14 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot { if W.Volume == 0 { W.error_msg = "Whiskysite.nl: Extracting volume failed" W.error_ctx = ctx - WarnOffer(W, "Whiskysite.nl: Extracting volume failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting volume failed") return } W.Abv, ctx = get_abv(e) if W.Abv == 0 { W.error_msg = "Whiskysite.nl: Extracting abv failed" W.error_ctx = ctx - WarnOffer(W, "Whiskysite.nl: Extracting abv failed") + PrintlnOffer(W, "Whiskysite.nl: Extracting abv failed") return } |
