Skip to content

Commit fa4d1ea

Browse files
committed
fix: log errors from cmdsInfoCache
Since the error gets swallowed in cmdInfo(), it's important to log it so it's possible for the user to see what the error was.
1 parent 9f5aacd commit fa4d1ea

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)