From: Aron Roberts Date: Mon, 24 Sep 2012 23:03:11 +0000 (-0700) Subject: CSPACE-5556: Increase log level of message identifying unrecognized elements in reque... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=49f6ec8bc19d1cc182e621d4c600b97980eb9d1a;p=tmp%2Fjakarta-migration.git CSPACE-5556: Increase log level of message identifying unrecognized elements in request payloads to WARN from DEBUG. Suppress that log message for the 'csid' element (only). --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java b/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java index bc3e307c7..77a132e40 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java @@ -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); } }