Commit d9ae8c62 authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

econstor import optimizations, some additional logging etc.

parent 1cc5b101
...@@ -29,6 +29,7 @@ public class Wzb2SsoarBundleFilter implements BundleFilter { ...@@ -29,6 +29,7 @@ public class Wzb2SsoarBundleFilter implements BundleFilter {
int yearIssuedValue = Integer.parseInt(yearIssuedValueString); int yearIssuedValue = Integer.parseInt(yearIssuedValueString);
if ( yearIssuedValue >= 2016 ) { if ( yearIssuedValue >= 2016 ) {
LOG.info("'{}' is newer than 2016", yearIssuedValueString);
result = true; result = true;
} }
else { else {
......
...@@ -258,10 +258,10 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo ...@@ -258,10 +258,10 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
if (null != errorCode) { if (null != errorCode) {
if ("filteraway".equals(errorCode)) { if ("filteraway".equals(errorCode)) {
LOG.info("1- filtering away oaiPmhIdentifier={}", oaiPmhIdentifier); LOG.info("1- filtering away oaiPmhIdentifier={}", oaiPmhIdentifier);
LOG.info("ErrorCode={}", errorCode);
LOG.info("Error detail: {}", e.getCause().getLocalizedMessage()); LOG.info("Error detail: {}", e.getCause().getLocalizedMessage());
resultBundle = null; resultBundle = null;
// test if this break is really necessary, taken out. STJ break;
// break;
} else { } else {
LOG.warn("2- fatalError. Filtering away oaiPmhIdentifier=" + oaiPmhIdentifier, e); LOG.warn("2- fatalError. Filtering away oaiPmhIdentifier=" + oaiPmhIdentifier, e);
} }
......
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