summaryrefslogtreecommitdiff
path: root/crawler/shop_bottleworld.go
diff options
context:
space:
mode:
authorMaximilian Möhring2019-05-14 17:35:18 +0200
committerMaximilian Möhring2019-05-14 17:35:18 +0200
commita2d595423e4270d8e644212021ba70c70df075d9 (patch)
treea4d7f32400266a47b37d612babf9aa807c93f31d /crawler/shop_bottleworld.go
parent64520ffa7b66f6914decf50c43c8698ce47ee1ce (diff)
downloadalkobote-a2d595423e4270d8e644212021ba70c70df075d9.tar.gz
Refactores logging functions. (crawler)
Diffstat (limited to 'crawler/shop_bottleworld.go')
-rw-r--r--crawler/shop_bottleworld.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawler/shop_bottleworld.go b/crawler/shop_bottleworld.go
index 8722211..97ec162 100644
--- a/crawler/shop_bottleworld.go
+++ b/crawler/shop_bottleworld.go
@@ -33,7 +33,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- PrintlnOffer(W, "Bottleworld: Converting original price failed")
+ W.Println("Bottleworld: Converting original price failed")
return
}
})
@@ -42,7 +42,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- PrintlnOffer(W, "Bottleworld: Converting discounted price failed")
+ W.Println("Bottleworld: Converting discounted price failed")
return
}
})
@@ -53,7 +53,7 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = price_per_litre_noisy
- PrintlnOffer(W, "Bottleworld: Sanitizing base price failed")
+ W.Println("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
- PrintlnOffer(W, "Bottleworld: Volume is zero")
+ W.Println("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
- PrintlnOffer(W, "Bottleworld: Abv is zero")
+ W.Println("Bottleworld: Abv is zero")
return
}