From dfdd1512825c0c99d5bbcb339a709b1652ddb5a7 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Wed, 16 Nov 2022 09:50:11 +0700 Subject: [PATCH] remove log whhen start --- zookeeper.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zookeeper.go b/zookeeper.go index f88983e..0d22047 100644 --- a/zookeeper.go +++ b/zookeeper.go @@ -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 } - - - -