print namespace and gourpname by nacos

This commit is contained in:
yoyofx 2021-07-30 12:26:44 +08:00
parent e39cfe4cdd
commit a16a88e3c9

View File

@ -35,7 +35,9 @@ func (provider *ViperRemoteProvider) GetProvider(runtimeViper *viper.Viper) *vip
if err == nil { if err == nil {
//err = remote_viper.WatchRemoteConfigOnChannel() //err = remote_viper.WatchRemoteConfigOnChannel()
if err == nil { 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 return remote_viper
} }
} else { } else {