Remove debugging code and fix POM.

This commit is contained in:
AppleDash 2016-08-14 16:22:45 -04:00
parent 2db1ac617b
commit 1fd55be372
2 changed files with 1 additions and 5 deletions

View File

@ -148,7 +148,6 @@ public class EconomyStorageBackendMySQL extends EconomyStorageBackendCaching {
statement.setDouble(1, newBalance);
statement.setString(2, economable.getUniqueIdentifier());
statement.executeUpdate();
SaneEconomy.logger().info("Updated.");
} catch (SQLException e) {
/* Roll it back */
balances.put(economable.getUniqueIdentifier(), oldBalance);
@ -158,9 +157,7 @@ public class EconomyStorageBackendMySQL extends EconomyStorageBackendCaching {
}
private synchronized void ensureAccountExists(Economable economable, Connection conn) throws SQLException {
SaneEconomy.logger().info("Ensuring account exists.");
if (!accountExists(economable, conn)) {
SaneEconomy.logger().info("It didn't, creating it.");
PreparedStatement statement = conn.prepareStatement("INSERT INTO `saneeconomy_balances` (unique_identifier, balance) VALUES (?, 0.0)");
statement.setString(1, economable.getUniqueIdentifier());
statement.executeUpdate();

View File

@ -6,12 +6,11 @@
<groupId>org.appledash</groupId>
<artifactId>SaneEconomy</artifactId>
<version>0.6.7-SNAPSHOT</version>
<version>0.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>SaneEconomyCore</module>
<module>SaneEconomySignShop</module>
</modules>
<repositories>