diff -r 2fdc9cc89502 -r 91dc9acb03ed org/sonews/util/Purger.java --- a/org/sonews/util/Purger.java Wed Jul 22 14:04:05 2009 +0200 +++ b/org/sonews/util/Purger.java Fri Aug 21 17:40:54 2009 +0200 @@ -63,7 +63,7 @@ } catch(InterruptedException ex) { - Log.msg("Purger interrupted: " + ex, true); + Log.get().warning("Purger interrupted: " + ex); } } @@ -84,14 +84,14 @@ if(ids.size() == 0) { StorageManager.current().purgeGroup(group); - Log.msg("Group " + group.getName() + " purged.", true); + Log.get().info("Group " + group.getName() + " purged."); } for(int n = 0; n < ids.size() && n < 10; n++) { Article art = StorageManager.current().getArticle(ids.get(n), group.getInternalID()); StorageManager.current().delete(art.getMessageID()); - Log.msg("Article " + art.getMessageID() + " purged.", true); + Log.get().info("Article " + art.getMessageID() + " purged."); } } } @@ -107,7 +107,7 @@ if(lifetime > 0 || articleMaximum < Stats.getInstance().getNumberOfNews()) { - Log.msg("Purging old messages...", true); + Log.get().info("Purging old messages..."); String mid = StorageManager.current().getOldestArticle(); if (mid == null) // No articles in the database { @@ -123,7 +123,7 @@ } catch (IllegalArgumentException ex) { - Log.msg("Could not parse date string: " + dateStr + " " + ex, true); + Log.get().warning("Could not parse date string: " + dateStr + " " + ex); } // Should we delete the message because of its age or because the @@ -141,7 +141,7 @@ } else { - Log.msg("Lifetime purger is disabled", true); + Log.get().info("Lifetime purger is disabled"); Thread.sleep(1000 * 60 * 30); // Wait 30 minutes } }