File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
library/src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
package com .loopj .android .http ;
20
20
21
+ import android .util .Log ;
22
+
21
23
import org .apache .http .Header ;
22
24
import org .apache .http .HttpStatus ;
23
25
import org .json .JSONArray ;
40
42
* parent class.
41
43
*/
42
44
public class JsonHttpResponseHandler extends AsyncHttpResponseHandler {
45
+ private static final String LOG_TAG = "JsonHttpResponseHandler" ;
43
46
//
44
47
// Callbacks to be overridden, typically anonymously
45
48
//
@@ -204,7 +207,7 @@ public void run() {
204
207
postRunnable (new Runnable () {
205
208
@ Override
206
209
public void run () {
207
- onFailure (ex , (JSONObject ) null );
210
+ onFailure (ex , (JSONObject ) null );
208
211
}
209
212
});
210
213
@@ -230,6 +233,7 @@ protected Object parseResponse(byte[] responseBody) throws JSONException {
230
233
result = jsonString ;
231
234
}
232
235
} catch (UnsupportedEncodingException ex ) {
236
+ Log .d (LOG_TAG , "JSON Parsing failed" , ex );
233
237
}
234
238
return result ;
235
239
}
You can’t perform that action at this time.
0 commit comments