From 7962a372fc8b956d038d7fd2dc63bb25042c2243 Mon Sep 17 00:00:00 2001 From: TreemanK Date: Fri, 20 Dec 2024 19:01:30 +1100 Subject: [PATCH 1/2] fix: comment out log spam --- .../advancedportals/core/serializeddata/DataStorage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/DataStorage.java b/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/DataStorage.java index 00c5be2d..13518ee5 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/DataStorage.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/DataStorage.java @@ -251,11 +251,12 @@ public List listAllFiles(String fileLocation, boolean trimExtension, } } } - } else { - infoLogger.warning( - "Directory does not exist or is not a directory: " - + fileLocation); } +// } else { +// infoLogger.warning( +// "Directory does not exist or is not a directory: " +// + fileLocation); +// } return list; } From f0eec51fea8a34b8a9242eefc7a844aff84e1a72 Mon Sep 17 00:00:00 2001 From: TreemanK Date: Fri, 20 Dec 2024 19:18:26 +1100 Subject: [PATCH 2/2] perf: remove additional Metrics --- .../sekwah/advancedportals/spigot/AdvancedPortalsPlugin.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spigot/src/main/java/com/sekwah/advancedportals/spigot/AdvancedPortalsPlugin.java b/spigot/src/main/java/com/sekwah/advancedportals/spigot/AdvancedPortalsPlugin.java index 24181907..9416556f 100644 --- a/spigot/src/main/java/com/sekwah/advancedportals/spigot/AdvancedPortalsPlugin.java +++ b/spigot/src/main/java/com/sekwah/advancedportals/spigot/AdvancedPortalsPlugin.java @@ -88,8 +88,6 @@ public void onEnable() { this.portalsCore.registerPortalCommand("import", new ImportPortalSubCommand()); - - new Metrics(this); } private void checkAndCreateConfig() {