From: Niels Erik G. Nielsen Date: Fri, 3 May 2013 03:07:49 +0000 (-0400) Subject: Tweaks logs X-Git-Tag: v0.0.7~130 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0ac90b80d7eaf67f64c57c90b97bd59ca2d57bb2;p=mkjsf-moved-to-github.git Tweaks logs --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2ResponseParser.java b/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2ResponseParser.java index f9f607b..3bff69a 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2ResponseParser.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2ResponseParser.java @@ -139,7 +139,7 @@ public class Pazpar2ResponseParser extends DefaultHandler { } if (!docTypes.contains(localName)) { if (dataElements.size() == 0) { - logger.info("Encountered unknown top level element [" + localName + "]"); + logger.info("Encountered unknown top level element [" + localName + "]. Creating generic data object."); currentElement.setType(localName); } else { dataElements.peek().addElement(localName, currentElement); diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2Responses.java b/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2Responses.java index 09e96d5..fd0b9f0 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2Responses.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/data/Pazpar2Responses.java @@ -88,10 +88,6 @@ public class Pazpar2Responses implements Serializable { } public RecordResponse getRecord() { - logger.info("Request to get record response."); - logger.info("Has record response: [" + ((dataObjects.get("record")!=null) ? "true" : "false") + "]"); - logger.info("Its of type record: [" + ((dataObjects.get("record") instanceof RecordResponse) ? "true" : "false") +"]"); - logger.info("It has xml: [" + ((dataObjects.get("record").getXml()!=null) ? "true" : "false") + "]"); return ((RecordResponse) dataObjects.get("record")); }