Removes stack trace printing

This commit is contained in:
2023-04-21 14:03:33 +02:00
parent fab067c94b
commit 05fadfa558
6 changed files with 15 additions and 23 deletions

View File

@@ -120,8 +120,8 @@ public final class LanguageLoader {
try {
readChangedLanguageStrings(inputStream, language, currentLanguageValues);
} catch (IOException ex) {
ex.printStackTrace();
} catch (IOException exception) {
Stargate.logSevere("Unable to read language strings! Message: " + exception.getMessage());
}
}

View File

@@ -464,7 +464,6 @@ public final class StargateConfig {
currentConfiguration.save(new File(dataFolderPath, "config.yml.old"));
} catch (IOException e) {
Stargate.debug("StargateConfig::migrateConfig", "Unable to save old backup and do migration");
e.printStackTrace();
return;
}
@@ -483,7 +482,6 @@ public final class StargateConfig {
ColorConversion.NORMAL);
} catch (IOException e) {
Stargate.debug("StargateConfig::migrateConfig", "Unable to load config migration file");
e.printStackTrace();
return;
}
@@ -511,9 +509,8 @@ public final class StargateConfig {
try {
newConfiguration.save(new File(dataFolderPath, "config.yml"));
} catch (IOException e) {
} catch (IOException exception) {
Stargate.debug("StargateConfig::migrateConfig", "Unable to save migrated config");
e.printStackTrace();
}
Stargate.getInstance().reloadConfig();