diff options
| author | horus_arch | 2018-02-17 13:51:35 +0100 |
|---|---|---|
| committer | horus_arch | 2018-02-17 13:51:35 +0100 |
| commit | bcdea2f8e95f5305625a773223829478c8c13bed (patch) | |
| tree | efac40b03131b4f9e43de848920695ee785a0a3f /crawler/shops.go | |
| parent | 9ebf51364773dae6db4c0c47d77710c9f1a37b51 (diff) | |
| download | alkobote-bcdea2f8e95f5305625a773223829478c8c13bed.tar.gz | |
Introduces context on errors. (crawler)
Diffstat (limited to 'crawler/shops.go')
| -rw-r--r-- | crawler/shops.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawler/shops.go b/crawler/shops.go index 8cfd9f4..1babc9d 100644 --- a/crawler/shops.go +++ b/crawler/shops.go @@ -111,9 +111,7 @@ func (app *App) getShops() ([]Shop, error) { if err != nil { return []Shop{}, err } - if app.Config.Debug { - log.Println("Crawling: " + shop.Name) - } + log.Debug("Crawling: " + shop.Name) Shops = append(Shops, shop) } |
