From c46615f1d280e9ba9491f22c081ccc50d706a112 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 May 2023 17:30:30 -0400 Subject: [PATCH] Logging info update on bootstrap. --- src/engine/gameManager/DbManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index e8952fee..5c7f6402 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -298,7 +298,8 @@ public enum DbManager { HikariConfig config = new HikariConfig(); - config.setMaximumPoolSize((Runtime.getRuntime().availableProcessors() * 2) + 1); + int connectionCount = (Runtime.getRuntime().availableProcessors() * 2) + 1; + config.setMaximumPoolSize(connectionCount); config.setJdbcUrl("jdbc:mysql://" + ConfigManager.MB_DATABASE_ADDRESS.getValue() + ":" + ConfigManager.MB_DATABASE_PORT.getValue() + "/" + @@ -321,6 +322,6 @@ public enum DbManager { connectionPool = new HikariDataSource(config); // setup the connection pool - Logger.info("Database connection pool configured"); + Logger.info("Database pool has " + connectionCount + " max connections"); } }