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/convert_price.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawler/convert_price.go') diff --git a/crawler/convert_price.go b/crawler/convert_price.go index f1c88b4..b28639f 100644 --- a/crawler/convert_price.go +++ b/crawler/convert_price.go @@ -2,7 +2,6 @@ package main import ( "errors" - "log" "regexp" "strconv" "strings" @@ -98,7 +97,7 @@ func convert_price(price string) (int, error) { */ price_int, err := strconv.Atoi(price) if err != nil { - log.Println(price) + Println(err, price) return 0, err } -- cgit v1.2.3