Remove debug logging.

This commit is contained in:
tastybento 2019-06-05 19:32:03 -07:00
parent 258eb097d8
commit d57a9aa6d8
2 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

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