From ed6ab4da59f80bf9fa2cbf15da5c9167dff44ea4 Mon Sep 17 00:00:00 2001 From: horus Date: Fri, 16 Feb 2018 16:57:10 +0100 Subject: Adds structured logging. (crawler) --- crawler/shops.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawler/shops.go') diff --git a/crawler/shops.go b/crawler/shops.go index 9cad602..8cfd9f4 100644 --- a/crawler/shops.go +++ b/crawler/shops.go @@ -1,7 +1,7 @@ package main import ( - "log" + log "github.com/Sirupsen/logrus" ) func (app *App) insertShops() error { @@ -112,7 +112,7 @@ func (app *App) getShops() ([]Shop, error) { return []Shop{}, err } if app.Config.Debug { - log.Println("Appending: " + shop.Name) + log.Println("Crawling: " + shop.Name) } Shops = append(Shops, shop) -- cgit v1.2.3