Added some logs

This commit is contained in:
Francesco Mangiacrapa 2020-01-17 17:41:46 +01:00
parent 0c0e2aff88
commit db8a49cbb3
1 changed files with 3 additions and 1 deletions

View File

@ -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) {