mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
printStackTrace to LOGGER
This commit is contained in:
parent
36fed88ea9
commit
6f74f80336
@ -44,10 +44,12 @@ public class ChangeUsername extends RCONMessage<ChangeUsername.JSON> {
|
||||
|
||||
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<ChangeUsername.JSON> {
|
||||
catch (Exception e) {
|
||||
this.status = RCONMessage.SYSTEM_ERROR;
|
||||
this.message = "Exception occurred";
|
||||
LOGGER.error("Exception occurred", e);
|
||||
LOGGER.error(this.message, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user