main
kzkzzzz 2025-12-15 22:41:56 +08:00
parent 2b704cc700
commit 8806b49e8f
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ 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"
@ -98,7 +99,8 @@ 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", svc.Name)
log.Printf("register service ok: %s", svc.Name)
return nil return nil
} }