add logging back to config, move logging server start to main package

This commit is contained in:
Bradley Cicenas
2017-02-12 05:14:50 +00:00
parent 4450abf89b
commit d5d91398f5
3 changed files with 10 additions and 8 deletions

View File

@@ -2,10 +2,13 @@ package config
import (
"os"
"github.com/bcicen/ctop/logging"
)
var (
Global = NewDefaultConfig()
log = logging.Init()
configChan = make(chan ConfigMsg)
)
@@ -17,7 +20,7 @@ type ConfigMsg struct {
}
func Update(k, v string) {
//log.Noticef("config update: %s = %s", k, v)
log.Noticef("config update: %s = %s", k, v)
configChan <- ConfigMsg{k, v}
}