mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-14 15:05:49 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user