From dbcf1e77e75f79d8fa67a32d233d10b4056c74cc Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 8 Nov 2022 16:55:29 +0300 Subject: [PATCH] Migrating to WithValues(..) instead of WithName(..) for config prefix --- rdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdb.go b/rdb.go index 90f7bfd..1f0e9dc 100644 --- a/rdb.go +++ b/rdb.go @@ -143,7 +143,7 @@ func newRedisPool(s RdSettings, logger logr.Logger) *redis.Pool { connStr := s.ConnStr() if len(s.Prefix) > 0 { - logger = logger.WithName("[" + s.Prefix + "]") + logger = logger.WithValues("rd", s.Prefix) } return &redis.Pool{