Repository: james-project
Updated Branches:
  refs/heads/master db1c5dac5 -> c9a2ebfb5


JAMES-2625 Fix SMTPSessionImpl netty error from error to info


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/c9a2ebfb
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/c9a2ebfb
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/c9a2ebfb

Branch: refs/heads/master
Commit: c9a2ebfb5f55439e963a56ded6703a4fceb4e6f5
Parents: d7f060d
Author: Gautier DI FOLCO <[email protected]>
Authored: Tue Dec 11 14:32:32 2018 +0100
Committer: Raphael Ouazana <[email protected]>
Committed: Tue Dec 18 10:10:13 2018 +0100

----------------------------------------------------------------------
 .../james/protocols/netty/BasicChannelUpstreamHandler.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/c9a2ebfb/protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
----------------------------------------------------------------------
diff --git 
a/protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
 
b/protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
index 9454428..3b0586a 100644
--- 
a/protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
+++ 
b/protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
@@ -19,6 +19,7 @@
 package org.apache.james.protocols.netty;
 
 import java.io.Closeable;
+import java.nio.channels.ClosedChannelException;
 import java.util.LinkedList;
 import java.util.List;
 
@@ -234,7 +235,11 @@ public class BasicChannelUpstreamHandler extends 
SimpleChannelUpstreamHandler {
                     }
                     transport.writeResponse(Response.DISCONNECT, session);
                 }
-                LOGGER.error("Unable to process request", e.getCause());
+                if (e.getCause() instanceof ClosedChannelException) {
+                    LOGGER.info("Unable to process request", e.getCause());
+                } else {
+                    LOGGER.error("Unable to process request", e.getCause());
+                }
                 cleanup(ctx);
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to