remove log whhen start

This commit is contained in:
namhq1989 2022-11-16 09:50:11 +07:00
parent f4ed1c6b54
commit dfdd151282
1 changed files with 1 additions and 5 deletions

View File

@ -12,7 +12,7 @@ var zkClient *zk.Conn
// Connect ... // Connect ...
func Connect(uri string) error { 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 { if err != nil {
fmt.Println("Error when connect to Zookeeper", uri, err) fmt.Println("Error when connect to Zookeeper", uri, err)
return err return err
@ -25,7 +25,3 @@ func Connect(uri string) error {
return nil return nil
} }