simplify config, export GlobalParams+GlobalSwitches

This commit is contained in:
Bradley Cicenas
2017-02-16 14:49:41 +11:00
parent 90f6ce3962
commit 5bbce31601
4 changed files with 42 additions and 45 deletions
+1
View File
@@ -9,6 +9,7 @@ import (
var log *logging.CTopLogger
func main() {
config.Init()
log = logging.Init()
if config.GetSwitch("loggingEnabled") {
log.StartServer()