Better reporting for unusual - yet not necessairly errorenous - situation

Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/7c53afa0
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/7c53afa0
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/7c53afa0

Branch: refs/heads/master
Commit: 7c53afa087bec1743e3b9f561093dace34e074b9
Parents: 696a098
Author: Francesco Chicchiriccò <ilgro...@apache.org>
Authored: Mon Mar 12 13:36:36 2018 +0100
Committer: Francesco Chicchiriccò <ilgro...@apache.org>
Committed: Mon Mar 12 13:36:44 2018 +0100

----------------------------------------------------------------------
 .../syncope/core/provisioning/java/utils/MappingUtils.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/7c53afa0/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/utils/MappingUtils.java
----------------------------------------------------------------------
diff --git 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/utils/MappingUtils.java
 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/utils/MappingUtils.java
index d8624e3..398fef5 100644
--- 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/utils/MappingUtils.java
+++ 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/utils/MappingUtils.java
@@ -110,7 +110,7 @@ public final class MappingUtils {
     public static Name evaluateNAME(final Any<?> any, final Provision 
provision, final String connObjectKey) {
         if (StringUtils.isBlank(connObjectKey)) {
             // LOG error but avoid to throw exception: leave it to the 
external resource
-            LOG.error("Missing ConnObjectKey for '{}': ", 
provision.getResource());
+            LOG.warn("Missing ConnObjectKey value for {}: ", 
provision.getResource());
         }
 
         // Evaluate connObjectKey expression
@@ -142,7 +142,7 @@ public final class MappingUtils {
     public static Name evaluateNAME(final Realm realm, final OrgUnit orgUnit, 
final String connObjectKey) {
         if (StringUtils.isBlank(connObjectKey)) {
             // LOG error but avoid to throw exception: leave it to the 
external resource
-            LOG.error("Missing ConnObjectKey for '{}': ", 
orgUnit.getResource());
+            LOG.warn("Missing ConnObjectKey value for {}: ", 
orgUnit.getResource());
         }
 
         // Evaluate connObjectKey expression

Reply via email to