james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgoldst...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport JamesSpoolManager.java
Date Mon, 30 Sep 2002 02:21:55 GMT
pgoldstein    2002/09/29 19:21:55

  Modified:    src/java/org/apache/james/transport JamesSpoolManager.java
  Log:
  Fixed the code so it logs an error message to the error log, rather than feeding to System.err
  
  Thanks to Noel Bergman for the fix.
  
  Revision  Changes    Path
  1.18      +3 -4      jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java
  
  Index: JamesSpoolManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- JamesSpoolManager.java	29 Sep 2002 02:27:22 -0000	1.17
  +++ JamesSpoolManager.java	30 Sep 2002 02:21:55 -0000	1.18
  @@ -216,7 +216,7 @@
                                           .append(ex.toString());
                               getLogger().error( errorBuffer.toString(), ex );
                           }
  -                        System.err.println("Unable to init mailet " + matcherName);
  +                        System.err.println("Unable to init matcher " + matcherName);
                           System.err.println("Check spool manager logs for more details.");
                           ex.printStackTrace();
                           //System.exit(1);
  @@ -399,8 +399,7 @@
                               .append("Exception in processor <")
                               .append(processorName)
                               .append(">");
  -                System.err.println(exceptionBuffer.toString());
  -                e.printStackTrace();
  +                getLogger().error(exceptionBuffer.toString(), e);
                   if (processorName.equals(Mail.ERROR)) {
                       // We got an error on the error processor...
                       // kill the message
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message