aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-04-30 11:41:42 -0700
committerAdam Mathes <adam@trenchant.org>2018-04-30 11:41:42 -0700
commite9f84c8a3d399789fc49ce0ee50ba257261b9e80 (patch)
tree576db0a3d218a3e804b1367bc8c7e7cbb803eb26 /models
parent5e9981a5a8f993d6233b9a321a643bd947ce4449 (diff)
downloadneko-e9f84c8a3d399789fc49ce0ee50ba257261b9e80.tar.gz
neko-e9f84c8a3d399789fc49ce0ee50ba257261b9e80.tar.bz2
neko-e9f84c8a3d399789fc49ce0ee50ba257261b9e80.zip
set limit to number of simultaneous crawl jobs
Diffstat (limited to 'models')
-rw-r--r--models/item/item.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/item/item.go b/models/item/item.go
index 52d3d37..dd8b52c 100644
--- a/models/item/item.go
+++ b/models/item/item.go
@@ -45,7 +45,7 @@ func (i *Item) Create() error {
item(title, url, description, publish_date, feed_id)
VALUES(?, ?, ?, ?, ?)`, i.Title, i.Url, i.Description, i.PublishDate, i.FeedId)
if err != nil {
- vlog.Printf("Error on item.Create\n%v\n%v\n", i, err)
+ vlog.Printf("Error on item.Create\n%v\n%v\n", i.Url, err)
return err
}