diff options
| author | Maximilian Möhring | 2019-05-15 16:58:56 +0200 |
|---|---|---|
| committer | Maximilian Möhring | 2019-05-15 16:58:56 +0200 |
| commit | c9afd4e8afe6a719b5d930c9baa2699442849fd8 (patch) | |
| tree | 3eb127ab39e8cacabef7c82a264f18ce4b8ee321 /crawler/shop_rumundco.go | |
| parent | 428ed1c35be88fbfedc1569d6e9692778c89ff25 (diff) | |
| download | alkobote-c9afd4e8afe6a719b5d930c9baa2699442849fd8.tar.gz | |
Improves structured logging. (crawler)
Diffstat (limited to 'crawler/shop_rumundco.go')
| -rw-r--r-- | crawler/shop_rumundco.go | 4 |
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") } } |
