print namespace and gourpname by nacos
This commit is contained in:
parent
e39cfe4cdd
commit
a16a88e3c9
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user