noel        2003/08/30 10:45:13

  Modified:    src/java/org/apache/james/smtpserver Tag: branch_2_1_fcs
                        SMTPHandler.java
  Log:
  Changed logging to include the mail name (repository key) at INFO level.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.35.4.14 +5 -13     
james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java
  
  Index: SMTPHandler.java
  ===================================================================
  RCS file: 
/home/cvs/james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java,v
  retrieving revision 1.35.4.13
  retrieving revision 1.35.4.14
  diff -u -r1.35.4.13 -r1.35.4.14
  --- SMTPHandler.java  17 Jul 2003 14:00:10 -0000      1.35.4.13
  +++ SMTPHandler.java  30 Aug 2003 17:45:13 -0000      1.35.4.14
  @@ -1006,7 +1006,7 @@
        * Handles the SIZE MAIL option.
        *
        * @param mailOptionValue the option string passed in with the SIZE option
  -     * @returns true if further options should be processed, false otherwise
  +     * @return true if further options should be processed, false otherwise
        */
       private boolean doMailSize(String mailOptionValue) {
           int size = 0;
  @@ -1442,20 +1442,12 @@
               if (theRecipients != null) {
                   recipientString = theRecipients.toString();
               }
  -            if (getLogger().isDebugEnabled()) {
  -                StringBuffer debugBuffer =
  +            if (getLogger().isInfoEnabled()) {
  +                StringBuffer infoBuffer =
                       new StringBuffer(256)
  -                        .append("Successfully spooled mail )")
  +                        .append("Successfully spooled mail ")
                           .append(mail.getName())
                           .append(" from ")
  -                        .append(mail.getSender())
  -                        .append(" for ")
  -                        .append(recipientString);
  -                getLogger().debug(debugBuffer.toString());
  -            } else if (getLogger().isInfoEnabled()) {
  -                StringBuffer infoBuffer =
  -                    new StringBuffer(256)
  -                        .append("Successfully spooled mail from ")
                           .append(mail.getSender())
                           .append(" for ")
                           .append(recipientString);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to