summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-10 14:07:34 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-10 14:07:34 -0800
commitbc35db8c462646b8e0ed3bbc94ceca51808a7787 (patch)
tree4998f26c3337372cff501f4bdfee8780bdb51c02 /system/db/init.go
parentf2908a6b3a602394385c7b5bf5014085361549da (diff)
adding pointer fix for decoding, removing print debugs
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/system/db/init.go b/system/db/init.go
index ff2926c..eaf6d76 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -2,7 +2,6 @@ package db
import (
"encoding/json"
- "fmt"
"log"
"github.com/ponzu-cms/ponzu/system/admin/config"
@@ -25,9 +24,7 @@ func Close() {
// Init creates a db connection, initializes db with required info, sets secrets
func Init() {
- fmt.Println("db.Init inside db package")
if store != nil {
- fmt.Println("db.Init already intialized store")
return
}
@@ -86,21 +83,16 @@ func Init() {
log.Fatalln("Coudn't initialize db with buckets.", err)
}
- fmt.Println("db initialization completed")
-
// invalidate cache on system start
err = InvalidateCache()
if err != nil {
log.Fatalln("Failed to invalidate cache.", err)
}
- fmt.Println("Cache invalidated")
go func() {
for t := range item.Types {
SortContent(t)
}
-
- fmt.Println("content sorted (from goroutine)")
}()
}