Skip to content

Commit

Permalink
Disable redis log
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Aug 1, 2022
1 parent a791ce7 commit ed7e1b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redis_shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ const (
redisDataBatchLimit = 64
)

type redisLogger struct{}

func (redisLogger) Printf(ctx context.Context, format string, v ...interface{}) {}

func init() {
redis.SetLogger(redisLogger{})
}

type RedisShard struct {
config RedisShardConfig
client redis.UniversalClient
Expand Down

0 comments on commit ed7e1b2

Please sign in to comment.