mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-14 12:47:14 +08:00
Go: add error logs when fail to init infinity (#18235)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -201,12 +201,14 @@ func (c *infinityClient) WaitForHealthy(ctx context.Context, timeout time.Durati
|
||||
|
||||
conn, release, err := c.checkoutConn(ctx, "WaitForHealthy")
|
||||
if err != nil {
|
||||
common.Warn("Failed to get Infinity connection", zap.Error(err))
|
||||
time.Sleep(5 * time.Second)
|
||||
continue
|
||||
}
|
||||
res, err := conn.ShowCurrentNode()
|
||||
release()
|
||||
if err != nil {
|
||||
common.Warn("Failed to check Infinity health", zap.Error(err))
|
||||
time.Sleep(5 * time.Second)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user