summaryrefslogtreecommitdiff
path: root/crawler/shop_rumundco.go
diff options
context:
space:
mode:
authorhorus2018-02-16 18:06:50 +0100
committerhorus2018-02-16 18:06:50 +0100
commitbf5f6b98a1d933d5f0ffb7fe965428f4dab5e3b0 (patch)
treec95eb6426b61965b37da2b60da36cfe2c02a92b4 /crawler/shop_rumundco.go
parented6ab4da59f80bf9fa2cbf15da5c9167dff44ea4 (diff)
downloadalkobote-bf5f6b98a1d933d5f0ffb7fe965428f4dab5e3b0.tar.gz
Structured logging part two. (crawler)
Diffstat (limited to 'crawler/shop_rumundco.go')
-rw-r--r--crawler/shop_rumundco.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go
index e1516ba..25b89bd 100644
--- a/crawler/shop_rumundco.go
+++ b/crawler/shop_rumundco.go
@@ -95,7 +95,7 @@ func ScrapeRumundCo(shop Shop) []Angebot {
W.Volume = get_volume(e)
if W.Volume == 0 {
- PrintlnOffer(W, "Rum & Co: No Volume found")
+ DebugOffer(W, "Rum & Co: Volume is zero")
return
}
@@ -107,6 +107,10 @@ func ScrapeRumundCo(shop Shop) []Angebot {
Fatal(err, "Rum & Co: Base price: Extracting ABV failed")
}
}
+ if W.Abv == 0 {
+ DebugOffer(W, "Rum & Co: Abv is zero")
+ return
+ }
W.Shop = shop.Id
W.Spirit_type = "Whisky"