Skip to content

Commit

Permalink
Use logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jan 18, 2024
1 parent 3d6f87a commit 97d7022
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 97d7022

Please sign in to comment.