diff options
| author | horus | 2018-02-16 16:57:10 +0100 |
|---|---|---|
| committer | horus | 2018-02-16 16:57:39 +0100 |
| commit | ed6ab4da59f80bf9fa2cbf15da5c9167dff44ea4 (patch) | |
| tree | 1038ab5d9b2a0b9bde5ee021624fa87422b705f8 /crawler/convert_price.go | |
| parent | b131ce750740ddb9c47515727327c06aa0d22aad (diff) | |
| download | alkobote-ed6ab4da59f80bf9fa2cbf15da5c9167dff44ea4.tar.gz | |
Adds structured logging. (crawler)
Diffstat (limited to 'crawler/convert_price.go')
| -rw-r--r-- | crawler/convert_price.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |
