From 0fdf9fb1b6c811eefade7e071b6d264e0289a414 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 26 Jun 2024 10:40:17 +0200 Subject: [PATCH] log postgres config --- src/postgres.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/postgres.rs b/src/postgres.rs index aedd120..659f93f 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -108,6 +108,8 @@ impl PostgresSession { pub async fn new(nb: usize) -> anyhow::Result { let pg_config = std::env::var("PG_CONFIG").context("env PG_CONFIG not found")?; let pg_config = pg_config.parse::()?; + info!("Using Postgres config to database {} with ssl_disabled={}", + pg_config.get_dbname().unwrap_or("n/a"), matches!(pg_config.get_ssl_mode(), SslMode::Disable)); let client = if let SslMode::Disable = pg_config.get_ssl_mode() { Self::spawn_connection(pg_config, NoTls).await?