[debug] added some debugging to PDV logic.

pull/14/head
Tim Su 15 years ago
parent 8b6241b042
commit 127cdd081a

@ -477,6 +477,7 @@ public class ProducteevInvoker {
throws IOException, ApiServiceException {
try {
String request = createFetchUrl(method, getParameters);
System.err.println("invoking: " + request);
String response = null;
try {
response = restClient.get(request);
@ -504,9 +505,12 @@ public class ProducteevInvoker {
System.err.println(response);
return new JSONObject();
}
return new JSONObject(response);
} catch (JSONException e) {
throw new ApiResponseParseException(e);
try {
return new JSONObject(response);
} catch (JSONException e) {
System.err.println(response);
throw new ApiResponseParseException(e);
}
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}

Loading…
Cancel
Save