1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-03 18:31:14 +03:00

use proper logger

This commit is contained in:
Nedyalko Dyakov
2025-11-26 09:54:46 +02:00
parent 8bf1376591
commit f2406a6aff
2 changed files with 3 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ func (c *clusterState) IsConsistent(ctx context.Context) bool {
func GetSlavesAddrByName(ctx context.Context, c *SentinelClient, name string) []string {
addrs, err := c.Replicas(ctx, name).Result()
if err != nil {
logging.LoggerWithLevel.Errorf(ctx, "sentinel: Replicas name=%q failed: %s",
logging.LoggerWithLevel().Errorf(ctx, "sentinel: Replicas name=%q failed: %s",
name, err)
return []string{}
}