From ae3808e5ad3314cbcca25331822033b8617e748c Mon Sep 17 00:00:00 2001 From: Winston Li Date: Sat, 10 Jan 2015 09:12:58 +0000 Subject: [PATCH] Changed response message slightly. --- .../ic/wlgitbridge/writelatex/api/request/base/Request.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/writelatex/api/request/base/Request.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/writelatex/api/request/base/Request.java index eaba89fa4f..cd158f21ad 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/writelatex/api/request/base/Request.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/writelatex/api/request/base/Request.java @@ -76,8 +76,9 @@ public abstract class Request { @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