update
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user