Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit 7108823

Browse files
committed
Fix spamming the console when things aren't right when loading module statuses.
1 parent 18bbd4b commit 7108823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/uk/co/drnaylor/quickstart/config/ModulesConfigAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import uk.co.drnaylor.quickstart.enums.LoadingStatus;
1212

1313
import java.util.HashMap;
14+
import java.util.logging.Logger;
1415

1516
/**
1617
* Configuration adapter that handles the module statuses.
@@ -42,7 +43,7 @@ protected HashMap<String, LoadingStatus> convertFromConfigurateNode(Configuratio
4243
try {
4344
value = node.getValue(new TypeToken<HashMap<String, LoadingStatus>>() {});
4445
} catch (ObjectMappingException e) {
45-
e.printStackTrace();
46+
Logger.getLogger("QuickStart").warning(e.getMessage());
4647
}
4748

4849
if (value == null) {

0 commit comments

Comments
 (0)