Skip to content

Commit b634d4c

Browse files
committed
Not ommiting exception
1 parent 69be8ed commit b634d4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/src/com/loopj/android/http/JsonHttpResponseHandler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
package com.loopj.android.http;
2020

21+
import android.util.Log;
22+
2123
import org.apache.http.Header;
2224
import org.apache.http.HttpStatus;
2325
import org.json.JSONArray;
@@ -40,6 +42,7 @@
4042
* parent class.
4143
*/
4244
public class JsonHttpResponseHandler extends AsyncHttpResponseHandler {
45+
private static final String LOG_TAG = "JsonHttpResponseHandler";
4346
//
4447
// Callbacks to be overridden, typically anonymously
4548
//
@@ -204,7 +207,7 @@ public void run() {
204207
postRunnable(new Runnable() {
205208
@Override
206209
public void run() {
207-
onFailure(ex, (JSONObject) null );
210+
onFailure(ex, (JSONObject) null);
208211
}
209212
});
210213

@@ -230,6 +233,7 @@ protected Object parseResponse(byte[] responseBody) throws JSONException {
230233
result = jsonString;
231234
}
232235
} catch (UnsupportedEncodingException ex) {
236+
Log.d(LOG_TAG, "JSON Parsing failed", ex);
233237
}
234238
return result;
235239
}

0 commit comments

Comments
 (0)