You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2021/07/01 07:58:05 UTC
[unomi] branch UNOMI-494-validation-exception-level created (now
a52b432)
This is an automated email from the ASF dual-hosted git repository.
shuber pushed a change to branch UNOMI-494-validation-exception-level
in repository https://gitbox.apache.org/repos/asf/unomi.git.
at a52b432 UNOMI-494 Change validation exception logging to debug
This branch includes the following new commits:
new a52b432 UNOMI-494 Change validation exception logging to debug
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[unomi] 01/01: UNOMI-494 Change validation exception logging to
debug
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch UNOMI-494-validation-exception-level
in repository https://gitbox.apache.org/repos/asf/unomi.git
commit a52b43284489b2d8448526005f0c1750a2cbac17
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Thu Jul 1 09:57:53 2021 +0200
UNOMI-494 Change validation exception logging to debug
---
.../org/apache/unomi/rest/exception/ValidationExceptionMapper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rest/src/main/java/org/apache/unomi/rest/exception/ValidationExceptionMapper.java b/rest/src/main/java/org/apache/unomi/rest/exception/ValidationExceptionMapper.java
index a403abf..98ec937 100644
--- a/rest/src/main/java/org/apache/unomi/rest/exception/ValidationExceptionMapper.java
+++ b/rest/src/main/java/org/apache/unomi/rest/exception/ValidationExceptionMapper.java
@@ -36,10 +36,10 @@ public class ValidationExceptionMapper implements ExceptionMapper<ConstraintViol
exception.getConstraintViolations().forEach(constraintViolation -> {
if (logger.isDebugEnabled()) {
logger.debug(String.format("value %s from %s %s", constraintViolation.getInvalidValue(),
- constraintViolation.getPropertyPath().toString(), constraintViolation.getMessage()));
+ constraintViolation.getPropertyPath().toString(), constraintViolation.getMessage()), exception);
}
logger.error(constraintViolation.getPropertyPath().toString() + " " + constraintViolation.getMessage() + ". Enable debug log "
- + "level for more informations about the invalid value received", exception);
+ + "level for more informations about the invalid value received");
});
return Response.status(Response.Status.BAD_REQUEST).header("Content-Type", MediaType.TEXT_PLAIN)