Migrating to WithValues(..) instead of WithName(..) for config prefix
This commit is contained in:
parent
8c1374c7c9
commit
dbcf1e77e7
2
rdb.go
2
rdb.go
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue