main
kzkzzzz 2025-12-15 22:44:02 +08:00
parent 8806b49e8f
commit 521184c19c
1 changed files with 1 additions and 3 deletions

View File

@ -9,7 +9,6 @@ import (
"github.com/hashicorp/consul/api" "github.com/hashicorp/consul/api"
"github.com/rs/xid" "github.com/rs/xid"
"go.uber.org/zap" "go.uber.org/zap"
"log"
"net" "net"
"net/url" "net/url"
"os" "os"
@ -99,8 +98,7 @@ func (c *Consul) Register(service *myregistry.ServiceInfo) error {
return err return err
} }
//defaultLog.Infof("register service ok: %s", svc.Name) defaultLog.Infof("register service ok: %s - %s:%d", svc.Name, svc.Address, svc.Port)
log.Printf("register service ok: %s", svc.Name)
return nil return nil
} }