Migrating to WithValues(..) instead of WithName(..) for config prefix

This commit is contained in:
Pavel Shevaev 2022-11-08 16:55:29 +03:00
parent 8c1374c7c9
commit dbcf1e77e7
1 changed files with 1 additions and 1 deletions

2
rdb.go
View File

@ -143,7 +143,7 @@ func newRedisPool(s RdSettings, logger logr.Logger) *redis.Pool {
connStr := s.ConnStr() connStr := s.ConnStr()
if len(s.Prefix) > 0 { if len(s.Prefix) > 0 {
logger = logger.WithName("[" + s.Prefix + "]") logger = logger.WithValues("rd", s.Prefix)
} }
return &redis.Pool{ return &redis.Pool{