diff --git a/cluster.go b/cluster.go index 217cadd..07de993 100644 --- a/cluster.go +++ b/cluster.go @@ -235,6 +235,7 @@ func (c *ClusterClient) slotClosestNode(slot int) (*clusterNode, error) { func (c *ClusterClient) cmdSlotAndNode(cmd Cmder) (int, *clusterNode, error) { cmdInfo := c.cmdInfo(cmd.arg(0)) if cmdInfo == nil { + internal.Logf("info for cmd=%s not found", cmd.arg(0)) node, err := c.randomNode() return 0, node, err } diff --git a/commands.go b/commands.go index 0d8e8b2..db9d806 100644 --- a/commands.go +++ b/commands.go @@ -550,7 +550,7 @@ func (c *cmdable) Set(key string, value interface{}, expiration time.Duration) * func (c *cmdable) SetBit(key string, offset int64, value int) *IntCmd { cmd := NewIntCmd( - "SETBIT", + "setbit", key, offset, value, diff --git a/ring.go b/ring.go index 8c998a8..b0c0179 100644 --- a/ring.go +++ b/ring.go @@ -169,6 +169,7 @@ func (c *Ring) cmdInfo(name string) *CommandInfo { func (c *Ring) cmdFirstKey(cmd Cmder) string { cmdInfo := c.cmdInfo(cmd.arg(0)) if cmdInfo == nil { + internal.Logf("info for cmd=%s not found", cmd.arg(0)) return "" } return cmd.arg(int(cmdInfo.FirstKeyPos))