diff --git a/src/main/java/com/eu/habbo/messages/rcon/ChangeUsername.java b/src/main/java/com/eu/habbo/messages/rcon/ChangeUsername.java index 848d6d25..24dd7a11 100644 --- a/src/main/java/com/eu/habbo/messages/rcon/ChangeUsername.java +++ b/src/main/java/com/eu/habbo/messages/rcon/ChangeUsername.java @@ -44,10 +44,12 @@ public class ChangeUsername extends RCONMessage { success = statement.executeUpdate() >= 1; } catch (SQLException sqlException) { - sqlException.printStackTrace(); + this.message = "SQL Exception occurred"; + LOGGER.error(this.message, sqlException); } } catch (SQLException sqlException) { - sqlException.printStackTrace(); + this.message = "SQL Exception occurred"; + LOGGER.error(this.message, sqlException); } } @@ -57,7 +59,7 @@ public class ChangeUsername extends RCONMessage { catch (Exception e) { this.status = RCONMessage.SYSTEM_ERROR; this.message = "Exception occurred"; - LOGGER.error("Exception occurred", e); + LOGGER.error(this.message, e); } }