add quote method to config log messages

This commit is contained in:
Bradley Cicenas
2017-02-18 14:30:54 +11:00
parent 8d9e6fd273
commit 3c28137873
2 changed files with 8 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ func GetVal(k string) string {
// Set param value
func Update(k, v string) {
p := Get(k)
log.Noticef("config change: %s: %s -> %s", k, p.Val, v)
log.Noticef("config change: %s: %s -> %s", k, quote(p.Val), quote(v))
p.Val = v
// log.Errorf("ignoring update for non-existant parameter: %s", k)
}