diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index dfc7c843c..64aeab1ad 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -129,7 +129,6 @@ public final class SQLDatabaseManager implements DatabaseManager { loadPool = new DataSource(poolProperties); checkStructure(); - } @NotNull @@ -1272,13 +1271,7 @@ public final class SQLDatabaseManager implements DatabaseManager { } private void printErrors(SQLException ex) { - if (debug || h2) { - ex.printStackTrace(); - } else { - for (StackTraceElement element : ex.getStackTrace()) { - logger.severe("Location: " + element.getClassName() + " " + element.getMethodName() + " " + element.getLineNumber()); - } - } + ex.printStackTrace(); // logger.severe("SQLException: " + ex.getMessage()); logger.severe("SQLState: " + ex.getSQLState());