Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
yuexiao.fan committed Oct 25, 2023
1 parent 615d718 commit a0b6222
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ import (
)

func RegisterNacos(cfg nacos.Config) {
log.Info(fmt.Sprintf("nacos config NacosUrls %s NamespaceId %s ApplicationName %s ExternalListenAddr %s", cfg.NacosUrls, cfg.NamespaceId, cfg.ApplicationName, cfg.ExternalListenAddr))
if cfg.NacosUrls != "" {
log.Info(fmt.Sprintf("nacos config find NacosUrls %s", cfg.NacosUrls))
nacos.StartNacosClient(cfg.NacosUrls, cfg.NamespaceId, cfg.ApplicationName, cfg.ExternalListenAddr)
} else {
log.Error("no nacos config find")
}
}

Expand Down

0 comments on commit a0b6222

Please sign in to comment.