Skip to content

Commit

Permalink
Cannot disable the global redis logger
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Aug 26, 2022
1 parent 116cafd commit 805ba09
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions redis_shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ 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 805ba09

Please sign in to comment.