From 387404d518c104d209c27bc5eca310201eb721f3 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 9 Sep 2020 22:35:18 +0200 Subject: [PATCH] Add log for remote config errors Signed-off-by: Mark Sagi-Kazar --- viper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/viper.go b/viper.go index 405dc20..50fd66e 100644 --- a/viper.go +++ b/viper.go @@ -1759,9 +1759,13 @@ func (v *Viper) getKeyValueConfig() error { for _, rp := range v.remoteProviders { val, err := v.getRemoteConfig(rp) if err != nil { + jww.ERROR.Printf("get remote config: %s", err) + continue } + v.kvstore = val + return nil } return RemoteConfigError("No Files Found")