remove log whhen start
This commit is contained in:
parent
f4ed1c6b54
commit
dfdd151282
|
@ -12,7 +12,7 @@ var zkClient *zk.Conn
|
|||
|
||||
// Connect ...
|
||||
func Connect(uri string) error {
|
||||
c, _, err := zk.Connect([]string{uri}, time.Second*30)
|
||||
c, _, err := zk.Connect([]string{uri}, time.Second*30, zk.WithLogInfo(false))
|
||||
if err != nil {
|
||||
fmt.Println("Error when connect to Zookeeper", uri, err)
|
||||
return err
|
||||
|
@ -25,7 +25,3 @@ func Connect(uri string) error {
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue