james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [1/2] james-project git commit: JAMES-1846 Improve IMAP logging
Date Wed, 02 Nov 2016 07:52:26 GMT
Repository: james-project
Updated Branches:
  refs/heads/master d75a3b4d0 -> a50f75112


JAMES-1846 Improve IMAP logging

We should be able to know wich command is being used after UID command


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

Branch: refs/heads/master
Commit: dd3566255591e5c03fcd41d3b9f17ff59ca7493a
Parents: 8bba513
Author: Benoit Tellier <btellier@linagora.com>
Authored: Fri Oct 21 18:41:07 2016 +0200
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Wed Oct 26 09:04:53 2016 +0200

----------------------------------------------------------------------
 .../org/apache/james/imap/decode/main/DefaultImapDecoder.java     | 1 +
 .../org/apache/james/imap/decode/parser/UidCommandParser.java     | 3 +++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/dd356625/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
----------------------------------------------------------------------
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
index 91bd2ab..d5e4136 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
@@ -18,6 +18,7 @@
  ****************************************************************/
 package org.apache.james.imap.decode.main;
 
+import org.apache.james.imap.api.ImapConstants;
 import org.apache.james.imap.api.ImapMessage;
 import org.apache.james.imap.api.ImapSessionState;
 import org.apache.james.imap.api.display.HumanReadableText;

http://git-wip-us.apache.org/repos/asf/james-project/blob/dd356625/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
----------------------------------------------------------------------
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
index 2cc1925..3c19059 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
@@ -73,6 +73,9 @@ public class UidCommandParser extends AbstractImapCommandParser implements
Deleg
         if (helperCommand == null || !(helperCommand instanceof AbstractUidCommandParser))
{
             throw new DecodingException(HumanReadableText.ILLEGAL_ARGUMENTS, "Invalid UID
command: '" + commandName + "'");
         }
+        if (session.getLog().isDebugEnabled()) {
+            session.getLog().debug("Got <command>: UID " + commandName);
+        }
         final AbstractUidCommandParser uidEnabled = (AbstractUidCommandParser) helperCommand;
         return uidEnabled.decode(request, tag, true, session);
     }


---------------------------------------------------------------------
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