From c3e281b7ef9d6334c4caab4ec0dd38377f8affa4 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 8 Nov 2022 16:53:49 +0300 Subject: [PATCH] Migrating to WithValues(..) instead of WithName(..) for config prefix --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index d0f6200..b5c32c8 100644 --- a/db.go +++ b/db.go @@ -74,7 +74,7 @@ func OpenPool(s Settings) *Pool { func GetDBC(p *Pool, logger logr.Logger) *DBC { if len(p.S.Prefix) > 0 { - logger = logger.WithName(p.S.Prefix) + logger = logger.WithValues("db", p.S.Prefix) } con := dbr.NewConnection(p.DB, nil)