james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [1/3] james-project git commit: JAMES-1675 Add error log when parsing the json
Date Mon, 08 Feb 2016 14:01:08 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 7411eb07d -> 6665a49e6


JAMES-1675 Add error log when parsing the json


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

Branch: refs/heads/master
Commit: 00cad60696923f73aa6b135d17436e04041f91c0
Parents: 7411eb0
Author: Antoine Duprat <antduprat@gmail.com>
Authored: Wed Jan 20 16:16:52 2016 +0100
Committer: Antoine Duprat <antduprat@gmail.com>
Committed: Mon Feb 8 14:59:47 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/james/jmap/methods/RequestHandler.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/00cad606/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
index 4ae4df9..0294aa6 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
@@ -33,9 +33,13 @@ import org.apache.commons.lang.NotImplementedException;
 import org.apache.james.jmap.model.AuthenticatedProtocolRequest;
 import org.apache.james.jmap.model.ProtocolResponse;
 import org.apache.james.mailbox.MailboxSession;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class RequestHandler {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(RequestHandler.class);
+
     private final JmapRequestParser jmapRequestParser;
     private final JmapResponseWriter jmapResponseWriter;
     private final Map<Method.Request.Name, Method> methods;
@@ -62,6 +66,7 @@ public class RequestHandler {
                         JmapRequest jmapRequest = jmapRequestParser.extractJmapRequest(request,
method.requestType());
                         return method.process(jmapRequest, request.getClientId(), mailboxSession);
                     } catch (IOException e) {
+                        LOGGER.error("Error occured while parsing the request.", e);
                         if (e.getCause() instanceof NotImplementedException) {
                             return error(request, "Not yet implemented");
                         }


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