From c9afd4e8afe6a719b5d930c9baa2699442849fd8 Mon Sep 17 00:00:00 2001 From: Maximilian Möhring Date: Wed, 15 May 2019 16:58:56 +0200 Subject: Improves structured logging. (crawler) --- crawler/shop_whiskysitenl.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawler/shop_whiskysitenl.go') diff --git a/crawler/shop_whiskysitenl.go b/crawler/shop_whiskysitenl.go index c9a50b0..18b4a7b 100644 --- a/crawler/shop_whiskysitenl.go +++ b/crawler/shop_whiskysitenl.go @@ -140,7 +140,9 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot { err := c.Visit(Shop_url) if err != nil { - Warn(nil, shop.Name+": "+err.Error()) + shop.error_msg = err.Error() + shop.error_ctx = Shop_url + shop.Warn("Crawling failed") } return Whiskys -- cgit v1.2.3