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

Loading…
Cancel
Save