diff -r bb6990c0dd1a -r 2541bdb54cb2 org/sonews/storage/Article.java --- a/org/sonews/storage/Article.java Thu Aug 20 14:31:19 2009 +0200 +++ b/org/sonews/storage/Article.java Wed Aug 26 10:47:51 2009 +0200 @@ -139,8 +139,10 @@ // Unknown content is probably a malformed mail we should skip. // On the other hand we produce an inconsistent mail mirror, but no // mail system must transport invalid content. - Log.msg("Skipping message due to unknown content. Throwing exception...", true); - throw new MessagingException("Unknown content: " + content); + Log.get().severe("Skipping message due to unknown content. Throwing exception..."); + MessagingException ex = new MessagingException("Unknown content: " + content); + Log.get().throwing("Article.java", "", ex); + throw ex; } // Validate headers @@ -264,8 +266,8 @@ } catch(Exception ex) { - Log.msg(ex.getMessage(), false); - Log.msg("Article.getBodyCharset(): Unknown charset: " + charsetName, false); + Log.get().severe(ex.getMessage()); + Log.get().severe("Article.getBodyCharset(): Unknown charset: " + charsetName); } return charset; }