org/sonews/storage/Article.java
changeset 24 2ff819fa5be1
parent 12 bb6990c0dd1a
child 33 f9bf183447d1
     1.1 --- a/org/sonews/storage/Article.java	Thu Aug 20 14:31:19 2009 +0200
     1.2 +++ b/org/sonews/storage/Article.java	Wed Aug 26 17:04:04 2009 +0200
     1.3 @@ -139,8 +139,10 @@
     1.4        // Unknown content is probably a malformed mail we should skip.
     1.5        // On the other hand we produce an inconsistent mail mirror, but no
     1.6        // mail system must transport invalid content.
     1.7 -      Log.msg("Skipping message due to unknown content. Throwing exception...", true);
     1.8 -      throw new MessagingException("Unknown content: " + content);
     1.9 +      Log.get().severe("Skipping message due to unknown content. Throwing exception...");
    1.10 +      MessagingException ex = new MessagingException("Unknown content: " + content);
    1.11 +      Log.get().throwing("Article.java", "<init>", ex);
    1.12 +      throw ex;
    1.13      }
    1.14      
    1.15      // Validate headers
    1.16 @@ -264,8 +266,8 @@
    1.17      }
    1.18      catch(Exception ex)
    1.19      {
    1.20 -      Log.msg(ex.getMessage(), false);
    1.21 -      Log.msg("Article.getBodyCharset(): Unknown charset: " + charsetName, false);
    1.22 +      Log.get().severe(ex.getMessage());
    1.23 +      Log.get().severe("Article.getBodyCharset(): Unknown charset: " + charsetName);
    1.24      }
    1.25      return charset;
    1.26    }