You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/20 14:39:02 UTC

[sling-org-apache-sling-models-validation-impl] 02/34: SLING-4161 log missing validation models only with debug level (in case it is not required)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-validation-impl.git

commit 20ba37d64d511d3ced0c1502507a3b21a46bf624
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Jun 3 07:02:09 2015 +0000

    SLING-4161 log missing validation models only with debug level (in case it is not required)
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1683242 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/models/validation/impl/ModelValidationImpl.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java b/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
index 0f33e88..342c429 100644
--- a/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
+++ b/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
@@ -77,7 +77,7 @@ public class ModelValidationImpl implements ModelValidation {
                 if (required) {
                     return new ValidationException(error);
                 } else {
-                    log.warn(error);
+                    log.debug(error);
                 }
             } else {
                 try {
@@ -92,8 +92,6 @@ public class ModelValidationImpl implements ModelValidation {
         } catch (IllegalStateException e) {
             return new ValidationException(e);
         }
-        
         return null;
     }
-
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.