move logging server into own file, improve cleanup

This commit is contained in:
Bradley Cicenas
2017-02-17 17:48:38 +11:00
parent 47360bc8e7
commit 2fdf68e876
3 changed files with 65 additions and 44 deletions

View File

@@ -12,7 +12,7 @@ func main() {
config.Init()
log = logging.Init()
if config.GetSwitchVal("loggingEnabled") {
log.StartServer()
logging.StartServer()
}
if err := ui.Init(); err != nil {
panic(err)