diff --git a/src/server/supervisor.rs b/src/server/supervisor.rs index fcd16ea..76b17c5 100644 --- a/src/server/supervisor.rs +++ b/src/server/supervisor.rs @@ -205,7 +205,7 @@ async fn create_db_connection_pool(config: &MysqlConfig) -> anyhow::Result anyhow::Result connection.context("Failed to connect to the database"), Err(_) => Err(anyhow!("Timed out after {} seconds", config.timeout)) .context("Failed to connect to the database"), - } + }?; + + let pool_opts = pool.options(); + log::debug!( + "Successfully opened database connection pool with options (max_connections: {}, min_connections: {})", + pool_opts.get_max_connections(), + pool_opts.get_min_connections(), + ); + + Ok(pool) } // fn spawn_signal_handler_task(