Added some logs
This commit is contained in:
parent
0c0e2aff88
commit
db8a49cbb3
|
@ -88,6 +88,7 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple
|
||||||
//Actually publish to zenodo :
|
//Actually publish to zenodo :
|
||||||
// Step 1 : metadata
|
// Step 1 : metadata
|
||||||
Ckan2Zenodo client= new Ckan2ZenodoImpl();
|
Ckan2Zenodo client= new Ckan2ZenodoImpl();
|
||||||
|
LOG.debug("Calling updatedMetadta for: "+zenodoDepositionPreview);
|
||||||
zenodoDepositionPreview = client.updatedMetadata(zenodoDepositionPreview);
|
zenodoDepositionPreview = client.updatedMetadata(zenodoDepositionPreview);
|
||||||
|
|
||||||
//Step 2 : publish Resources
|
//Step 2 : publish Resources
|
||||||
|
@ -104,7 +105,8 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple
|
||||||
// Get the item representation
|
// Get the item representation
|
||||||
CkanItemDescriptor item=client.read(zenodoItem.getName());
|
CkanItemDescriptor item=client.read(zenodoItem.getName());
|
||||||
//Finalize
|
//Finalize
|
||||||
client.publish(zenodoDepositionPreview, item);
|
LOG.debug("Calling publish on Zenodo for: "+zenodoDepositionPreview);
|
||||||
|
zenodoDepositionPreview = client.publish(zenodoDepositionPreview, item);
|
||||||
return zenodoDepositionPreview.toString();
|
return zenodoDepositionPreview.toString();
|
||||||
|
|
||||||
}catch (TimeoutException e) {
|
}catch (TimeoutException e) {
|
||||||
|
|
Loading…
Reference in New Issue