From 49f6ec8bc19d1cc182e621d4c600b97980eb9d1a Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Mon, 24 Sep 2012 16:03:11 -0700 Subject: [PATCH] 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). --- .../services/common/document/DocumentUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } } -- 2.47.3