From 127cdd081a75d7eda3cfd4b608aa60ae4c2c81d6 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 17 Dec 2010 19:13:46 -0800 Subject: [PATCH] [debug] added some debugging to PDV logic. --- .../astrid/producteev/api/ProducteevInvoker.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/producteev/api/ProducteevInvoker.java b/astrid/plugin-src/com/todoroo/astrid/producteev/api/ProducteevInvoker.java index e77489bd9..6efa0bbcf 100644 --- a/astrid/plugin-src/com/todoroo/astrid/producteev/api/ProducteevInvoker.java +++ b/astrid/plugin-src/com/todoroo/astrid/producteev/api/ProducteevInvoker.java @@ -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); }