From 0ac90b80d7eaf67f64c57c90b97bd59ca2d57bb2 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Thu, 2 May 2013 23:07:49 -0400 Subject: [PATCH] Tweaks logs --- .../com/indexdata/mkjsf/pazpar2/data/Pazpar2ResponseParser.java | 2 +- .../java/com/indexdata/mkjsf/pazpar2/data/Pazpar2Responses.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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")); } -- 1.7.10.4