From 400881559d6e7572c6eeebac9e7bcb8190c21575 Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 8 Nov 2024 17:01:53 -0800 Subject: [PATCH] Update to use BentoBox logging. --- .../world/bentobox/bentobox/api/configuration/Config.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/configuration/Config.java b/src/main/java/world/bentobox/bentobox/api/configuration/Config.java index 420dd4174..8acafe596 100644 --- a/src/main/java/world/bentobox/bentobox/api/configuration/Config.java +++ b/src/main/java/world/bentobox/bentobox/api/configuration/Config.java @@ -6,7 +6,6 @@ import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; -import org.apache.commons.lang.exception.ExceptionUtils; import org.eclipse.jdt.annotation.Nullable; import world.bentobox.bentobox.BentoBox; @@ -64,9 +63,9 @@ public class Config { return handler.loadObject(uniqueId); } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | ClassNotFoundException | IntrospectionException | NoSuchMethodException | SecurityException e) { - logger.severe(() -> "Could not load config object! " + e.getMessage()); + BentoBox.getInstance().logError("Could not load config object! " + e.getMessage()); // Required for debugging - logger.severe(ExceptionUtils.getStackTrace(e)); + e.printStackTrace(); } return null;