]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5556: Increase log level of message identifying unrecognized elements in reque...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 24 Sep 2012 23:03:11 +0000 (16:03 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 24 Sep 2012 23:03:11 +0000 (16:03 -0700)
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java

index bc3e307c715ea232e7467f5190370a9e21ccc27f..77a132e407f95bc9bc7f9c415c1f49f2bf641c6c 100644 (file)
@@ -1225,8 +1225,11 @@ public class DocumentUtils {
                                Object value = getElementData(element, field.getType(), ctx);
                                data.put(name, value);
                        } else  {
-                               if (logger.isDebugEnabled() == true) {
-                                       logger.debug("Invalid input document. No such property was found [" +
+                            // FIXME: substitute an appropriate constant for "csid" below.
+                            // One potential class to which to add that constant, if it is not already
+                            // declared, might be AbstractCollectionSpaceResourceImpl - ADR 2012-09-24
+                            if (! name.equals("csid")) { // 'csid' elements in input payloads can be safely ignored. 
+                                logger.warn("Invalid input document. No such property was found [" +
                                                        name + "] in schema " + schemaName);
                                }
                        }