diff --git a/asynq.go b/asynq.go index 963a5b7..562c249 100644 --- a/asynq.go +++ b/asynq.go @@ -11,6 +11,8 @@ import ( "strconv" "strings" + stdlog "log" + "github.com/go-redis/redis/v7" ) @@ -206,6 +208,11 @@ func parseRedisSentinelURI(u *url.URL) (RedisConnOpt, error) { return RedisFailoverClientOpt{MasterName: master, SentinelAddrs: addrs, Password: password}, nil } +//SetReditLogger set redit logger +func SetReditLogger(logger *stdlog.Logger) { + redis.SetLogger(logger) +} + // createRedisClient returns a redis client given a redis connection configuration. // // Passing an unexpected type as a RedisConnOpt argument will cause panic.