diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-19 11:04:20 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-19 11:04:20 -0800 |
commit | 43fd3472dd9d19aa1f602ce3fd3555f03312b99b (patch) | |
tree | fcd1a2e891a530d8812538c8bebe39f6fc491980 /system/db | |
parent | bab8caaf4d599da47f296bc9e2940b11cb37aa4f (diff) |
adding http port to config and removing hardcoded url from addons api
Diffstat (limited to 'system/db')
-rw-r--r-- | system/db/config.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/system/db/config.go b/system/db/config.go index 711a19b..4bbf29b 100644 --- a/system/db/config.go +++ b/system/db/config.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "fmt" - "log" "net/url" "strings" @@ -22,7 +21,6 @@ func init() { // SetConfig sets key:value pairs in the db for configuration settings func SetConfig(data url.Values) error { - fmt.Println("SetConfig:", data) err := store.Update(func(tx *bolt.Tx) error { b := tx.Bucket([]byte("__config")) @@ -122,7 +120,6 @@ func ConfigAll() ([]byte, error) { // PutConfig updates a single k/v in the config func PutConfig(key string, value interface{}) error { - fmt.Println("PutConfig:", key, value) kv := make(map[string]interface{}) c, err := ConfigAll() @@ -151,14 +148,10 @@ func PutConfig(key string, value interface{}) error { } default: - log.Println("No type case for:", k, v, "in PutConfig") data.Set(k, fmt.Sprintf("%v", v)) } } - fmt.Println("data should match 2 lines below:") - fmt.Println("PutConfig:", data) - err = SetConfig(data) if err != nil { return err |