Toggle debug mode via env var

remove logging param from global config, allowing logging server and
level to be configured inside logging subpackage from CTOP_DEBUG env var
This commit is contained in:
Bradley Cicenas
2017-03-19 04:59:01 +00:00
parent 35cc8d095d
commit 8aa932b29f
4 changed files with 15 additions and 16 deletions

View File

@@ -18,7 +18,6 @@ func Init() {
GlobalParams = append(GlobalParams, p)
log.Infof("loaded config param: %s: %s", quote(p.Key), quote(p.Val))
}
for _, s := range switches {
GlobalSwitches = append(GlobalSwitches, s)
log.Infof("loaded config switch: %s: %t", quote(s.Key), s.Val)