mirror of https://github.com/spf13/viper.git
commit
64816e4860
2
viper.go
2
viper.go
|
@ -301,7 +301,7 @@ func find(key string) interface{} {
|
||||||
if exists {
|
if exists {
|
||||||
jww.TRACE.Println(key, "registered as env var", envkey)
|
jww.TRACE.Println(key, "registered as env var", envkey)
|
||||||
if val = os.Getenv(envkey); val != "" {
|
if val = os.Getenv(envkey); val != "" {
|
||||||
jww.TRACE.Println(envkey, "found in environement with val:", val)
|
jww.TRACE.Println(envkey, "found in environment with val:", val)
|
||||||
return val
|
return val
|
||||||
} else {
|
} else {
|
||||||
jww.TRACE.Println(envkey, "env value unset:")
|
jww.TRACE.Println(envkey, "env value unset:")
|
||||||
|
|
Loading…
Reference in New Issue