Skip to content

Commit

Permalink
feat: test metrics for proxy passing env
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Sep 12, 2024
1 parent 6ac2ee2 commit 461c9fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package config
import (
"errors"
"fmt"
"log"
"net/url"
"os"
"strconv"
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 461c9fc

Please sign in to comment.