mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Add log for remote config errors
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
f26928cd87
commit
387404d518
1 changed files with 4 additions and 0 deletions
4
viper.go
4
viper.go
|
@ -1759,9 +1759,13 @@ func (v *Viper) getKeyValueConfig() error {
|
||||||
for _, rp := range v.remoteProviders {
|
for _, rp := range v.remoteProviders {
|
||||||
val, err := v.getRemoteConfig(rp)
|
val, err := v.getRemoteConfig(rp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
jww.ERROR.Printf("get remote config: %s", err)
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
v.kvstore = val
|
v.kvstore = val
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return RemoteConfigError("No Files Found")
|
return RemoteConfigError("No Files Found")
|
||||||
|
|
Loading…
Reference in a new issue