mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add logging back to config, move logging server start to main package
This commit is contained in:
@@ -2,10 +2,13 @@ package config
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/bcicen/ctop/logging"
|
||||
)
|
||||
|
||||
var (
|
||||
Global = NewDefaultConfig()
|
||||
log = logging.Init()
|
||||
configChan = make(chan ConfigMsg)
|
||||
)
|
||||
|
||||
@@ -17,7 +20,7 @@ type ConfigMsg struct {
|
||||
}
|
||||
|
||||
func Update(k, v string) {
|
||||
//log.Noticef("config update: %s = %s", k, v)
|
||||
log.Noticef("config update: %s = %s", k, v)
|
||||
configChan <- ConfigMsg{k, v}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user