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 830 try {
831 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 840 } finally {
835 841 if (response != null)
836 842 response.close();
837 843 }
838 844 }
839 845  
840   -
841   -
842 846 public WorkSummary readWorkSummary(final OrcidAccessToken token, final String putCode) throws OrcidClientException {
843 847 Response response = null;
844 848 try {
... ...