Compare commits

...

1 Commits
main ... dev

Author SHA1 Message Date
yoyofx
a16a88e3c9 print namespace and gourpname by nacos 2021-07-30 12:26:44 +08:00

View File

@ -35,7 +35,9 @@ func (provider *ViperRemoteProvider) GetProvider(runtimeViper *viper.Viper) *vip
if err == nil {
//err = remote_viper.WatchRemoteConfigOnChannel()
if err == nil {
fmt.Println("used remote viper")
fmt.Println("config center ..........")
fmt.Println("used remote viper by Nacos")
fmt.Printf("Nacos config: namespace: %s , group: %s", option.NamespaceId, option.GroupName)
return remote_viper
}
} else {