update config with get, gettoggle methods

This commit is contained in:
Bradley Cicenas
2017-02-12 06:03:10 +00:00
parent d5d91398f5
commit d56af1d932
6 changed files with 51 additions and 30 deletions

View File

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