mirror of https://github.com/go-redis/redis.git
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.
This commit is contained in:
parent
9f5aacde23
commit
fa4d1ea839
|
@ -1605,6 +1605,7 @@ func (c *ClusterClient) cmdsInfo(ctx context.Context) (map[string]*CommandInfo,
|
|||
func (c *ClusterClient) cmdInfo(name string) *CommandInfo {
|
||||
cmdsInfo, err := c.cmdsInfoCache.Get(c.ctx)
|
||||
if err != nil {
|
||||
internal.Logger.Printf(context.TODO(), "getting command info: %s", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue