Merge pull request #2146 from jsha/log-cmdsinfo-error

cluster: log errors from cmdsInfoCache
This commit is contained in:
Vladimir Mihailenco 2022-07-07 09:04:24 +03:00 committed by GitHub
commit 9c34c5345f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1605,6 +1605,7 @@ func (c *ClusterClient) cmdsInfo(ctx context.Context) (map[string]*CommandInfo,
func (c *ClusterClient) cmdInfo(name string) *CommandInfo { func (c *ClusterClient) cmdInfo(name string) *CommandInfo {
cmdsInfo, err := c.cmdsInfoCache.Get(c.ctx) cmdsInfo, err := c.cmdsInfoCache.Get(c.ctx)
if err != nil { if err != nil {
internal.Logger.Printf(context.TODO(), "getting command info: %s", err)
return nil return nil
} }