Changed response message slightly.

This commit is contained in:
Winston Li 2015-01-10 09:12:58 +00:00
parent 460ba0c4d7
commit ae3808e5ad

View file

@ -76,8 +76,9 @@ public abstract class Request<T extends Result> {
@Override
public T onCompleted(Response response) throws Exception {
System.out.println("Response -> " + url);
return parseResponse(new Gson().fromJson(response.getResponseBody(), JsonElement.class));
String body = response.getResponseBody();
System.out.println(response.getStatusText() + " (" + body.length() + " data bytes) -> " + url);
return parseResponse(new Gson().fromJson(body, JsonElement.class));
}
@Override