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