From 2110db6f0ca65b5f0cfb4c520110e8d667fb105e Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 27 Feb 2018 21:58:44 +0100 Subject: Add environment override back --- bridge/config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bridge/config/config.go') diff --git a/bridge/config/config.go b/bridge/config/config.go index 2a596cce..9e3f854e 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -225,7 +225,9 @@ func OverrideCfgFromEnv(cfg *Config, protocol string, account string) { if res != "" { fieldVal := protoStruct.Field(i) if fieldVal.Kind() == reflect.String { - log.Printf("config: overriding %s from env with %s\n", key, res) + log.WithFields(log.Fields{ + "prefix": "config", + }).Infof("overriding %s from env with %s\n", key, res) fieldVal.Set(reflect.ValueOf(res)) } } -- cgit v1.2.3