Commit 1d1852db authored by Niels Erik G. Nielsen's avatar Niels Erik G. Nielsen
Browse files

Add debug log statements around XmlSplitter.

parent 3b9d2a92
......@@ -536,7 +536,9 @@ public class XmlMarcClient extends AbstractHarvestClient {
XmlSplitter xmlSplitter = new XmlSplitter(logger,
handler, resource.isLaxParsing());
try {
logger.debug("XML splitter begins processing data from input stream");
xmlSplitter.processDataFromInputStream(is);
logger.debug("XML splitter done processing data from input stream");
} catch (SAXException se) {
throw new IOException(se);
}
......
......@@ -27,9 +27,10 @@ public class XmlSplitter {
public void processDataFromInputStream(InputStream input) throws SAXException, IOException
{
try {
logger.debug("Use lax parsing mode: "+useLaxParsing);
logger.debug("XmlSplitter: Use lax parsing mode: "+useLaxParsing);
InputSource source = new InputSource(input);
XmlUtils.read(source, handler, useLaxParsing);
logger.debug("XmlSplitter.processDataFromInputStream() done");
} catch (IOException ioe) {
if (logger != null)
logger.error("IOException in XML split", ioe);
......
......@@ -572,7 +572,7 @@ import com.indexdata.masterkey.localindices.util.MarcXMLToJson;
}
}
} else {
logger.debug("holdingsRecord " + existingHoldingsRecordId + " belongs to a different institution (" + existingHoldingsRecord.get("permanentLocationId") + "), not deleting it.");
logger.log(Level.TRACE, "holdingsRecord " + existingHoldingsRecordId + " belongs to a different institution (" + existingHoldingsRecord.get("permanentLocationId") + "), not deleting it.");
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment