From ec97784d44b5413a7689fd918276a5dbd1f7351e Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 26 Oct 2016 12:59:30 -0700 Subject: debugging --- system/db/content.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/db/content.go b/system/db/content.go index a55725a..71184af 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -24,6 +24,8 @@ func SetContent(target string, data url.Values) (int, error) { t := strings.Split(target, ":") ns, id := t[0], t[1] + log.Println(ns, id, data) + // check if content id == -1 (indicating new post). // if so, run an insert which will assign the next auto incremented int. // this is done because boltdb begins its bucket auto increment value at 0, -- cgit v1.2.3