diff --git a/config/config.go b/config/config.go index 029c349..28730b0 100644 --- a/config/config.go +++ b/config/config.go @@ -5,6 +5,7 @@ package config import ( "errors" "fmt" + "log" "net/url" "os" "strconv" @@ -347,6 +348,10 @@ func ReadConfig() Config { // before using any values read parsedHostnameToAccessControlAllowOriginValueMap, _ := ParseRawHostnameToHeaderValueMap(rawHostnameToAccessControlAllowOriginValueMap) + kk, ok := os.LookupEnv(METRIC_DATABASE_ENABLED_ENVIRONMENT_KEY) + log.Println("PARSING METRIC_DATABASE_ENABLED:", kk, ok) + log.Println("PARSED METRIC_DATABASE_ENABLED:", EnvOrDefaultBool(METRIC_DATABASE_ENABLED_ENVIRONMENT_KEY, DEFAULT_METRIC_DATABASE_ENABLED)) + return Config{ ProxyServicePort: os.Getenv(PROXY_SERVICE_PORT_ENVIRONMENT_KEY), LogLevel: EnvOrDefault(LOG_LEVEL_ENVIRONMENT_KEY, DEFAULT_LOG_LEVEL),