Add more detailed error messages on SQL connection failure.

Fixes #1322
This commit is contained in:
GJ 2013-07-30 15:09:22 -04:00
parent c501ebb357
commit a345737b8b

View File

@ -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!");
}
}
}