Skip to content

Commit

Permalink
Update to use BentoBox logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 9, 2024
1 parent 2ee6d60 commit 4008815
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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;
Expand Down Expand Up @@ -64,9 +63,9 @@ public T loadConfigObject(String uniqueId) {
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;
Expand Down

0 comments on commit 4008815

Please sign in to comment.