1.1 --- a/org/sonews/util/Purger.java Wed Jul 22 14:04:05 2009 +0200
1.2 +++ b/org/sonews/util/Purger.java Wed Aug 26 10:55:59 2009 +0200
1.3 @@ -63,7 +63,7 @@
1.4 }
1.5 catch(InterruptedException ex)
1.6 {
1.7 - Log.msg("Purger interrupted: " + ex, true);
1.8 + Log.get().warning("Purger interrupted: " + ex);
1.9 }
1.10 }
1.11
1.12 @@ -84,14 +84,14 @@
1.13 if(ids.size() == 0)
1.14 {
1.15 StorageManager.current().purgeGroup(group);
1.16 - Log.msg("Group " + group.getName() + " purged.", true);
1.17 + Log.get().info("Group " + group.getName() + " purged.");
1.18 }
1.19
1.20 for(int n = 0; n < ids.size() && n < 10; n++)
1.21 {
1.22 Article art = StorageManager.current().getArticle(ids.get(n), group.getInternalID());
1.23 StorageManager.current().delete(art.getMessageID());
1.24 - Log.msg("Article " + art.getMessageID() + " purged.", true);
1.25 + Log.get().info("Article " + art.getMessageID() + " purged.");
1.26 }
1.27 }
1.28 }
1.29 @@ -107,7 +107,7 @@
1.30
1.31 if(lifetime > 0 || articleMaximum < Stats.getInstance().getNumberOfNews())
1.32 {
1.33 - Log.msg("Purging old messages...", true);
1.34 + Log.get().info("Purging old messages...");
1.35 String mid = StorageManager.current().getOldestArticle();
1.36 if (mid == null) // No articles in the database
1.37 {
1.38 @@ -123,7 +123,7 @@
1.39 }
1.40 catch (IllegalArgumentException ex)
1.41 {
1.42 - Log.msg("Could not parse date string: " + dateStr + " " + ex, true);
1.43 + Log.get().warning("Could not parse date string: " + dateStr + " " + ex);
1.44 }
1.45
1.46 // Should we delete the message because of its age or because the
1.47 @@ -141,7 +141,7 @@
1.48 }
1.49 else
1.50 {
1.51 - Log.msg("Lifetime purger is disabled", true);
1.52 + Log.get().info("Lifetime purger is disabled");
1.53 Thread.sleep(1000 * 60 * 30); // Wait 30 minutes
1.54 }
1.55 }