use custom nacos go sdk for disable log (#1991)

This commit is contained in:
Xin Luo
2025-04-01 14:56:55 +08:00
committed by GitHub
parent bdd802f44f
commit 12e3f34c0b
2 changed files with 4 additions and 0 deletions

View File

@@ -100,3 +100,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/nacos-group/nacos-sdk-go/v2 v2.2.9 => github.com/luoxiner/nacos-sdk-go/v2 v2.2.9-30

View File

@@ -49,6 +49,8 @@ func CreateNacosMcpRegsitry(config *NacosConfig) (*NacosMcpRegsitry, error) {
)
cc.AppendToStdout = true
cc.DiableLog = true
if config.Namespace != nil {
cc.NamespaceId = *config.Namespace
}