Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging #5299

Merged
merged 11 commits into from
Sep 29, 2021
7 changes: 0 additions & 7 deletions resources/outpostschecked.txt

This file was deleted.

6 changes: 2 additions & 4 deletions src/com/palmergames/bukkit/config/CommentedConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,16 @@ public CommentedConfiguration(File file) {

public boolean load() {

boolean loaded = true;

try {
this.load(file);
} catch (InvalidConfigurationException | IOException e) {
Towny.getPlugin().getLogger().warning(String.format("Loading error: Failed to load file %s (does it pass a yaml parser?).", file.getPath()));
Towny.getPlugin().getLogger().warning("https://jsonformatter.org/yaml-parser");
Towny.getPlugin().getLogger().warning(e.getMessage());
loaded = false;
return false;
}

return loaded;
return true;
}

public void save() {
Expand Down
Loading