From fa4d1ea8398cd729ad5cbaaff88e4b8805393945 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Wed, 6 Jul 2022 14:28:42 -0700 Subject: [PATCH] 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. --- cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster.go b/cluster.go index bd8fdd73..c6d8cc58 100644 --- a/cluster.go +++ b/cluster.go @@ -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 }