Removed debug message.

This commit is contained in:
Robin Kupper
2011-04-14 21:30:34 +02:00
parent 2af2f93b7f
commit a25789bf8b

View File

@@ -29,7 +29,6 @@ public class ClearLog implements Runnable
try { try {
state = conn.createStatement(); state = conn.createStatement();
String time = new SimpleDateFormat("yy-MM-dd-HH-mm-ss").format(System.currentTimeMillis() - LogBlock.config.keepLogDays*86400000L); String time = new SimpleDateFormat("yy-MM-dd-HH-mm-ss").format(System.currentTimeMillis() - LogBlock.config.keepLogDays*86400000L);
LogBlock.log.info("Deleting log older than " + time);
ResultSet rs; ResultSet rs;
for (String table : LogBlock.config.tables.values()) { for (String table : LogBlock.config.tables.values()) {
rs = state.executeQuery("SELECT count(*) FROM `" + table + "` WHERE date < '" + time + "'"); rs = state.executeQuery("SELECT count(*) FROM `" + table + "` WHERE date < '" + time + "'");