Log ALL the things!

This commit is contained in:
GJ
2013-02-12 22:18:47 -05:00
parent e37f5e765e
commit aa0acf767b
9 changed files with 20 additions and 18 deletions

View File

@ -579,9 +579,9 @@ public final class Database {
}
private static void printErrors(SQLException ex) {
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
mcMMO.p.getLogger().severe("SQLException: " + ex.getMessage());
mcMMO.p.getLogger().severe("SQLState: " + ex.getSQLState());
mcMMO.p.getLogger().severe("VendorError: " + ex.getErrorCode());
}
public static void profileCleanup(String playerName) {

View File

@ -279,7 +279,7 @@ public final class Leaderboard {
writer.append(line).append("\r\n");
}
else {
System.out.println("User found, removing...");
mcMMO.p.getLogger().info("User found, removing...");
worked = true;
continue; //Skip the player
}
@ -359,7 +359,7 @@ public final class Leaderboard {
writer.append(line).append("\r\n");
}
else {
System.out.println("User found, removing...");
mcMMO.p.getLogger().info("User found, removing...");
removedPlayers++;
continue; //Skip the player
}

View File

@ -269,7 +269,7 @@ public class SQLConversionTask implements Runnable {
}
}
System.out.println("[mcMMO] MySQL Updated from users file, " + theCount + " items added/updated to MySQL DB");
mcMMO.p.getLogger().info("[mcMMO] MySQL Updated from users file, " + theCount + " items added/updated to MySQL DB");
in.close();
}
catch (Exception e) {