Skip to content

Commit 9c34c53

Browse files
authored
Merge pull request #2146 from jsha/log-cmdsinfo-error
cluster: log errors from cmdsInfoCache
2 parents 9f5aacd + fa4d1ea commit 9c34c53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,6 +1605,7 @@ func (c *ClusterClient) cmdsInfo(ctx context.Context) (map[string]*CommandInfo,
16051605
func (c *ClusterClient) cmdInfo(name string) *CommandInfo {
16061606
cmdsInfo, err := c.cmdsInfoCache.Get(c.ctx)
16071607
if err != nil {
1608+
internal.Logger.Printf(context.TODO(), "getting command info: %s", err)
16081609
return nil
16091610
}
16101611

0 commit comments

Comments
 (0)