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/shops.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawler/shops.go') diff --git a/crawler/shops.go b/crawler/shops.go index 95d8c99..656cd1f 100644 --- a/crawler/shops.go +++ b/crawler/shops.go @@ -2,8 +2,6 @@ package main import ( "strings" - - log "github.com/sirupsen/logrus" ) func (app *App) insertShops() error { @@ -134,7 +132,7 @@ func (app *App) getShops() ([]Shop, error) { if err != nil { return []Shop{}, err } - log.Debug("Crawling: " + shop.Name) + shop.Debug("Crawling: " + shop.Name) Shops = append(Shops, shop) } -- cgit v1.2.3