Commit 87cefe324f7adc751cab38e594a717ba606c3e85

Authored by Luis Pedro
1 parent b3ef490cb0
Exists in master and in 1 other branch API_v3.0

C5318

src/main/java/org/um/dsi/gavea/orcid/client/OrcidOAuthClient.java
@@ -830,15 +830,19 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient { @@ -830,15 +830,19 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient {
830 try { 830 try {
831 response = get(OrcidConstants.ENDPOINT_WORKS, token, StringUtils.join(putCodes.iterator(), ",")); 831 response = get(OrcidConstants.ENDPOINT_WORKS, token, StringUtils.join(putCodes.iterator(), ","));
832 832
833 - return response.readEntity(Bulk.class); 833 + Bulk bulk = response.readEntity(Bulk.class);
  834 +
  835 + if (debugMode || _log.isTraceEnabled()) {
  836 + _log.debug("[readWorks].[Bulk] " + RecordUtil.convertToString(bulk));
  837 + }
  838 +
  839 + return bulk;
834 } finally { 840 } finally {
835 if (response != null) 841 if (response != null)
836 response.close(); 842 response.close();
837 } 843 }
838 } 844 }
839 845
840 -  
841 -  
842 public WorkSummary readWorkSummary(final OrcidAccessToken token, final String putCode) throws OrcidClientException { 846 public WorkSummary readWorkSummary(final OrcidAccessToken token, final String putCode) throws OrcidClientException {
843 Response response = null; 847 Response response = null;
844 try { 848 try {