From 461c9fc30185d916f6758c4e1020a306e94fd2b5 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Thu, 12 Sep 2024 16:29:01 -0400 Subject: [PATCH] feat: test metrics for proxy passing env --- config/config.go | 5 +++++ 1 file changed, 5 insertions(+) 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),