Skip to content

Commit c019d89

Browse files
committed
more
1 parent 5d38207 commit c019d89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/vt/topo/zk2topo/zk_conn.go

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ func (c *ZkConn) withRetry(ctx context.Context, action func(conn *zk.Conn) error
259259
var conn *zk.Conn
260260
conn, err = c.getConn(ctx)
261261
if err != nil {
262+
log.Warningf("withRetry Cant connect. Err:%v", err)
262263
// We can't connect, try again.
263264
continue
264265
}
@@ -268,6 +269,7 @@ func (c *ZkConn) withRetry(ctx context.Context, action func(conn *zk.Conn) error
268269
if err != zk.ErrConnectionClosed {
269270
// It worked, or it failed for another reason
270271
// than connection related.
272+
log.Warningf("withRetry. Returning error. Err:%v", err)
271273
return
272274
}
273275

0 commit comments

Comments
 (0)