summaryrefslogtreecommitdiff
path: root/crawler/shop_rumundco.go
diff options
context:
space:
mode:
authorMaximilian Möhring2019-05-15 16:58:56 +0200
committerMaximilian Möhring2019-05-15 16:58:56 +0200
commitc9afd4e8afe6a719b5d930c9baa2699442849fd8 (patch)
tree3eb127ab39e8cacabef7c82a264f18ce4b8ee321 /crawler/shop_rumundco.go
parent428ed1c35be88fbfedc1569d6e9692778c89ff25 (diff)
downloadalkobote-c9afd4e8afe6a719b5d930c9baa2699442849fd8.tar.gz
Improves structured logging. (crawler)
Diffstat (limited to 'crawler/shop_rumundco.go')
-rw-r--r--crawler/shop_rumundco.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go
index 3b7d08a..c9a61a2 100644
--- a/crawler/shop_rumundco.go
+++ b/crawler/shop_rumundco.go
@@ -199,7 +199,9 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot {
for _, url := range Shop_urls {
err := c.Visit(url)
if err != nil {
- Warn(nil, shop.Name+": "+err.Error())
+ shop.error_msg = err.Error()
+ shop.error_ctx = url
+ shop.Warn("Crawling failed")
}
}