james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: james-server/src/java/org/apache/james/smtpserver SMTPHandler.java
Date Fri, 16 Apr 2004 02:23:37 GMT
noel        2004/04/15 19:23:37

  Modified:    src/java/org/apache/james/smtpserver Tag: branch_2_1_fcs
                        SMTPHandler.java
  Log:
  Fix JAMES-255.  Log exceptions that terminate the handler loop at ERROR instead of DEBUG
level.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.35.4.18 +9 -9      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.17
  retrieving revision 1.35.4.18
  diff -u -r1.35.4.17 -r1.35.4.18
  --- SMTPHandler.java	22 Mar 2004 05:48:38 -0000	1.35.4.17
  +++ SMTPHandler.java	16 Apr 2004 02:23:36 -0000	1.35.4.18
  @@ -361,7 +361,7 @@
               theWatchdog.stop();
               getLogger().debug("Closing socket.");
           } catch (SocketException se) {
  -            if (getLogger().isDebugEnabled()) {
  +            if (getLogger().isErrorEnabled()) {
                   StringBuffer errorBuffer =
                       new StringBuffer(64)
                           .append("Socket to ")
  @@ -369,10 +369,10 @@
                           .append(" (")
                           .append(remoteIP)
                           .append(") closed remotely.");
  -                getLogger().debug(errorBuffer.toString(), se );
  +                getLogger().error(errorBuffer.toString(), se );
               }
           } catch ( InterruptedIOException iioe ) {
  -            if (getLogger().isDebugEnabled()) {
  +            if (getLogger().isErrorEnabled()) {
                   StringBuffer errorBuffer =
                       new StringBuffer(64)
                           .append("Socket to ")
  @@ -380,10 +380,10 @@
                           .append(" (")
                           .append(remoteIP)
                           .append(") timeout.");
  -                getLogger().debug( errorBuffer.toString(), iioe );
  +                getLogger().error( errorBuffer.toString(), iioe );
               }
           } catch ( IOException ioe ) {
  -            if (getLogger().isDebugEnabled()) {
  +            if (getLogger().isErrorEnabled()) {
                   StringBuffer errorBuffer =
                       new StringBuffer(256)
                               .append("Exception handling socket to ")
  @@ -392,11 +392,11 @@
                               .append(remoteIP)
                               .append(") : ")
                               .append(ioe.getMessage());
  -                getLogger().debug( errorBuffer.toString(), ioe );
  +                getLogger().error( errorBuffer.toString(), ioe );
               }
           } catch (Exception e) {
  -            if (getLogger().isDebugEnabled()) {
  -                getLogger().debug( "Exception opening socket: "
  +            if (getLogger().isErrorEnabled()) {
  +                getLogger().error( "Exception opening socket: "
                                      + e.getMessage(), e );
               }
           } finally {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message