james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [24/24] james-project git commit: JAMES-2378 Log ValidationResult upon JMAP message update validation fail
Date Fri, 20 Apr 2018 02:13:09 GMT
JAMES-2378 Log ValidationResult upon JMAP message update validation fail


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

Branch: refs/heads/master
Commit: c2ad6f77759161c0c7fe99add2f77568cad303ac
Parents: 00ea973
Author: benwa <btellier@linagora.com>
Authored: Thu Apr 19 16:52:52 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Fri Apr 20 09:12:09 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/c2ad6f77/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java
index e2ec3ba..822c387 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/SetMessagesUpdateProcessor.java
@@ -320,7 +320,7 @@ public class SetMessagesUpdateProcessor implements SetMessagesProcessor
{
 
     private void handleInvalidRequest(SetMessagesResponse.Builder responseBuilder, MessageId
messageId,
                                       List<ValidationResult> validationErrors) {
-        LOGGER.error("Invalid update request for message #{}", messageId);
+        LOGGER.warn("Invalid update request for message #{}: {}", messageId, validationErrors);
 
         String formattedValidationErrorMessage = validationErrors.stream()
                 .map(err -> err.getProperty() + ": " + err.getErrorMessage())


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