Replace printStackTrace with Logger.throwing in various classes

The changes made in these classes are intended to improve error handling and visibility. Instead of simply printing the StackTrace, the Logger.throwing method is now used to send error messages to the logger in a more controlled manner. This should facilitate better error tracking and resolution. The affected classes include database, configuration, and quest implementation classes.
This commit is contained in:
2024-04-13 20:27:33 +02:00
parent 8a22f5188e
commit 46bfb4fd65
11 changed files with 31 additions and 31 deletions
@@ -82,7 +82,7 @@ public class BreedMobsQuest extends Quest {
statement.setInt(15, isRewardReceived() ? 1 : 0);
statement.execute();
} catch (SQLException exception) {
exception.printStackTrace();
Logger.throwing(BreedMobsQuest.class.getName(), "save", exception);
}
}