Skip to content

Commit 6e5dd94

Browse files
fix(config): debug level when reading env (#349)
1 parent 4e477f6 commit 6e5dd94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scw/env.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ func LoadEnvProfile() *Profile {
107107
func getEnv(upToDateKey string, deprecatedKeys ...string) (string, string, bool) {
108108
value, exist := os.LookupEnv(upToDateKey)
109109
if exist {
110-
logger.Infof("reading value from %s", upToDateKey)
110+
logger.Debugf("reading value from %s", upToDateKey)
111111
return value, upToDateKey, true
112112
}
113113

114114
for _, key := range deprecatedKeys {
115115
value, exist := os.LookupEnv(key)
116116
if exist {
117-
logger.Infof("reading value from %s", key)
117+
logger.Debugf("reading value from %s", key)
118118
logger.Warningf("%s is deprecated, please use %s instead", key, upToDateKey)
119119
return value, key, true
120120
}

0 commit comments

Comments
 (0)