mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Remove debug logging.
This commit is contained in:
parent
258eb097d8
commit
d57a9aa6d8
@ -132,7 +132,6 @@ public class MySQLDatabaseHandler<T> extends AbstractJSONDatabaseHandler<T> {
|
||||
String json = resultSet.getString("json");
|
||||
if (json != null) {
|
||||
try {
|
||||
plugin.logDebug("Trying to load " + dataObject.getCanonicalName());
|
||||
T gsonResult = gson.fromJson(json, dataObject);
|
||||
if (gsonResult != null) {
|
||||
list.add(gsonResult);
|
||||
|
@ -432,14 +432,9 @@ public class BlueprintsManager {
|
||||
File bpf = getBlueprintsFolder(addon);
|
||||
// Get the filename
|
||||
File fileName = new File(bpf, bp.getName().toLowerCase(Locale.ENGLISH) + BLUEPRINT_SUFFIX);
|
||||
plugin.logDebug("Old blueprint filename = " + fileName);
|
||||
// Delete the old file
|
||||
try {
|
||||
if (Files.deleteIfExists(fileName.toPath())) {
|
||||
plugin.logDebug("Deleted");
|
||||
} else {
|
||||
plugin.logDebug("Could not delete - does not exist");
|
||||
}
|
||||
Files.deleteIfExists(fileName.toPath());
|
||||
} catch (IOException e) {
|
||||
plugin.logError("Could not delete old Blueprint " + e.getLocalizedMessage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user