diff --git a/cmd/rdpgw/config/configuration.go b/cmd/rdpgw/config/configuration.go index 7791f570d5f167d93035247b59e1e9c9b14b902d..8e3804d253d457cc19dc40c1ddcc9feaf5e5a3b8 100644 --- a/cmd/rdpgw/config/configuration.go +++ b/cmd/rdpgw/config/configuration.go @@ -165,8 +165,10 @@ func Load(configFile string) Configuration { key := strings.Replace(strings.ToLower(strings.TrimPrefix(s, "RDPGW_")), "__", ".", -1) key = ToCamel(key) + newVal := strings.Split(strings.Trim(v, " "), " ") + log.Printf("Setting %s to %v", key, newVal) // handle the case where the value is a list - return key, strings.Split(strings.Trim(v, " "), " ") + return key, newVal }), nil); err != nil { log.Fatalf("Error loading config from environment: %v", err) }