From a345737b8b6f45dbd84ddbe20c8cdb7b43bb143a Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 30 Jul 2013 15:09:22 -0400 Subject: [PATCH] Add more detailed error messages on SQL connection failure. Fixes #1322 --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index b0faac76e..43f804ca0 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -581,14 +581,15 @@ public final class SQLDatabaseManager implements DatabaseManager { connection = null; if (reconnectAttempt == 0 || reconnectAttempt >= 11) { - mcMMO.p.getLogger().info("Connection to MySQL failed!"); + mcMMO.p.getLogger().severe("Connection to MySQL failed!"); + printErrors(ex); } } catch (ClassNotFoundException ex) { connection = null; if (reconnectAttempt == 0 || reconnectAttempt >= 11) { - mcMMO.p.getLogger().info("MySQL database driver not found!"); + mcMMO.p.getLogger().severe("MySQL database driver not found!"); } } }