Skip to content
Snippets Groups Projects
Commit f8f5857d authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

More changes concerning logging

parent d56911e8
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
private static Log log = LogFactory.getLog(RecordDelivererDATACITE.class);
// Container object for the result of the elasticsearch request. This object contains the source
// of the response
// of the response.
private JSONObject jsonObj = new JSONObject();
// This variables contains the field requested in the ElasticSearch Index. The content will be
......@@ -110,7 +110,15 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
System.out.println("idInElasticSearchIndex: " + idInElasticSearchIndex);
System.out.println("fields: " + (this.fields == null ? "NULL" : this.fields));
System.out.println(" ## fields (getRecordById): ");
if (this.fields != null) {
for (int i = 0; i < this.fields.length; i++) {
System.out.println("\t" + this.fields[i]);
}
} else {
System.out.println("NULL");
}
System.out.println("repositoryObjectURIPrefix: "
+ (this.repositoryObjectURIPrefix == null ? "NULL" : this.repositoryObjectURIPrefix));
......@@ -162,6 +170,11 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
OAIPMHtype oai = new OAIPMHtype();
HeaderType header = new HeaderType();
System.out.println(" ## fields (getRecord): ");
for (int i = 0; i < this.fields.length; i++) {
System.out.println("\t" + this.fields[i]);
}
this.jsonObj =
new JSONObject(OAIPMHUtilities.getRcordByIDFromElasticSearch(OAI_ESClient.getEsIndex(),
idInElasticSearchIndex, this.fields, Strings.EMPTY_ARRAY).getSource());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment