summaryrefslogtreecommitdiff
path: root/crawler/convert_price.go
diff options
context:
space:
mode:
authorhorus2018-02-16 16:57:10 +0100
committerhorus2018-02-16 16:57:39 +0100
commited6ab4da59f80bf9fa2cbf15da5c9167dff44ea4 (patch)
tree1038ab5d9b2a0b9bde5ee021624fa87422b705f8 /crawler/convert_price.go
parentb131ce750740ddb9c47515727327c06aa0d22aad (diff)
downloadalkobote-ed6ab4da59f80bf9fa2cbf15da5c9167dff44ea4.tar.gz
Adds structured logging. (crawler)
Diffstat (limited to 'crawler/convert_price.go')
-rw-r--r--crawler/convert_price.go3
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
}