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

@@ -9,7 +9,10 @@ import (
var log *logging.CTopLogger
func main() {
log = logging.Init(config.Global["loggingEnabled"])
log = logging.Init()
if config.Global["loggingEnabled"] == "1" {
log.StartServer()
}
if err := ui.Init(); err != nil {
panic(err)
}