From 97d70220a6e9e0c85314975652b97b81a049bd07 Mon Sep 17 00:00:00 2001 From: tr7zw Date: Fri, 19 Jan 2024 00:48:36 +0100 Subject: [PATCH] Use logger --- .../dev/tr7zw/firstperson/versionless/FirstPersonBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java b/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java index 43d05c9c..456c3cb8 100644 --- a/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java +++ b/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java @@ -36,7 +36,7 @@ public void loadConfig() { new String(Files.readAllBytes(settingsFile.toPath()), StandardCharsets.UTF_8), FirstPersonSettings.class); } catch (Exception ex) { - ex.printStackTrace(); + LOGGER.warn("Unable to load the config, creating a new one.", ex); } } if (config == null) { @@ -52,7 +52,7 @@ public void writeSettings() { try { Files.write(settingsFile.toPath(), json.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { - e.printStackTrace(); + LOGGER.warn("Error while saving the config!", e); } }