MPT-40 allow dialog debbuging in MPT

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

Branch: refs/heads/master
Commit: 67e44d268b3fa9b4b96cc21c7bc93a4835775de6
Parents: 07c9e3c
Author: Matthieu Baechler <matth...@apache.org>
Authored: Wed Jul 5 17:44:39 2017 -0400
Committer: benwa <btell...@linagora.com>
Committed: Thu Aug 17 11:21:34 2017 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/mpt/protocol/ProtocolSession.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/67e44d26/mpt/core/src/main/java/org/apache/james/mpt/protocol/ProtocolSession.java
----------------------------------------------------------------------
diff --git 
a/mpt/core/src/main/java/org/apache/james/mpt/protocol/ProtocolSession.java 
b/mpt/core/src/main/java/org/apache/james/mpt/protocol/ProtocolSession.java
index 874319e..0581e2e 100644
--- a/mpt/core/src/main/java/org/apache/james/mpt/protocol/ProtocolSession.java
+++ b/mpt/core/src/main/java/org/apache/james/mpt/protocol/ProtocolSession.java
@@ -264,6 +264,7 @@ public class ProtocolSession implements ProtocolInteractor {
         }
 
         private void writeMessage(Session session) throws Exception {
+            LOGGER.debug("C: {}", message);
             session.writeLine(message);
         }
 
@@ -345,6 +346,7 @@ public class ProtocolSession implements ProtocolInteractor {
 
         protected void checkResponse(Session session, boolean 
continueAfterFailure) throws Exception {
             String testLine = readLine(session);
+            LOGGER.debug("S: {}", testLine);
             if (!match(expectedLine, testLine)) {
                 String errMsg = "\nLocation: " + location + "\nLastClientMsg: 
" + lastClientMessage + "\nExpected: '"
                         + expectedLine + "'\nActual   : '" + testLine + "'";


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

Reply via email to