Fix confusing logs in rootcoord (#15431)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
pull/15526/head
Xiaofan 2022-02-10 13:51:47 +08:00 committed by GitHub
parent a18d6b46a4
commit d499ffc421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -88,12 +88,12 @@ func (c *Client) getRootCoordAddr() (string, error) {
log.Debug("RootCoordClient GetSessions failed", zap.Any("key", key))
return "", err
}
log.Debug("RootCoordClient GetSessions success")
ms, ok := msess[key]
if !ok {
log.Debug("RootCoordClient mess key not exist", zap.Any("key", key))
log.Warn("RootCoordClient mess key not exist", zap.Any("key", key))
return "", fmt.Errorf("number of RootCoord is incorrect, %d", len(msess))
}
log.Debug("RootCoordClient GetSessions success", zap.String("address", ms.Address))
return ms.Address, nil
}