Replace printStackTrace with logger

This commit is contained in:
GeorgH93 2024-01-17 00:37:11 +01:00
parent 6d0022e413
commit e50c92f603
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -65,7 +65,7 @@ public SQL(@NotNull Minepacks plugin, @NotNull ConnectionProvider connectionProv
} }
catch(SQLException e) catch(SQLException e)
{ {
e.printStackTrace(); plugin.getLogger().log(Level.SEVERE, "Failed to delete old backpacks! Error: {0}", e.getMessage());
} }
} }
// Delete old cooldowns // Delete old cooldowns
@ -77,7 +77,7 @@ public SQL(@NotNull Minepacks plugin, @NotNull ConnectionProvider connectionProv
} }
catch(SQLException e) catch(SQLException e)
{ {
e.printStackTrace(); plugin.getLogger().log(Level.SEVERE, "Failed to delete cooldowns! Error: {0}", e.getMessage());
} }
} }
} }
@ -116,7 +116,7 @@ protected void checkUUIDs()
} }
catch(SQLException e) catch(SQLException e)
{ {
e.printStackTrace(); plugin.getLogger().log(Level.SEVERE, "Failed to check UUIDs! Error: {0}", e.getMessage());
} }
} }