You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2017/08/17 04:22:28 UTC
[4/4] james-project git commit: MPT-40 allow dialog debbuging in MPT
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 <ma...@apache.org>
Authored: Wed Jul 5 17:44:39 2017 -0400
Committer: benwa <bt...@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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org