mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Update to use BentoBox logging.
This commit is contained in:
parent
2ee6d60081
commit
400881559d
@ -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<T> {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user