mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Move logging to internal package.
This commit is contained in:
3
ring.go
3
ring.go
@ -6,6 +6,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"gopkg.in/redis.v3/internal"
|
||||
"gopkg.in/redis.v3/internal/consistenthash"
|
||||
"gopkg.in/redis.v3/internal/hashtag"
|
||||
"gopkg.in/redis.v3/internal/pool"
|
||||
@ -204,7 +205,7 @@ func (ring *Ring) heartbeat() {
|
||||
for _, shard := range ring.shards {
|
||||
err := shard.Client.Ping().Err()
|
||||
if shard.Vote(err == nil || err == pool.ErrPoolTimeout) {
|
||||
Logger.Printf("ring shard state changed: %s", shard)
|
||||
internal.Logf("ring shard state changed: %s", shard)
|
||||
rebalance = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user