From 03404e5d635615b567fc9b08e9ca78e64a9ff41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Fri, 13 Feb 2026 13:58:18 +0400 Subject: [PATCH] Activate pg debug via config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- pkg/probod/pg_config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/probod/pg_config.go b/pkg/probod/pg_config.go index 07f48a703..5f4ea705d 100644 --- a/pkg/probod/pg_config.go +++ b/pkg/probod/pg_config.go @@ -29,6 +29,7 @@ type ( Database string `json:"database"` PoolSize int32 `json:"pool-size"` CACertBundle string `json:"ca-cert-bundle"` + Debug bool `json:"debug"` } ) @@ -41,6 +42,10 @@ func (cfg pgConfig) Options(options ...pg.Option) []pg.Option { pg.WithPoolSize(cfg.PoolSize), } + if cfg.Debug { + opts = append(opts, pg.WithDebug()) + } + if cfg.CACertBundle != "" { var certs []*x509.Certificate pemData := []byte(cfg.CACertBundle)