Fix ResourceFetcher log message.

This commit is contained in:
Winston Li
2015-02-22 02:30:21 +00:00
parent b01ec908e1
commit 52f2190346
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ public class CandidateSnapshot {
jsonObject.addProperty("latestVerId", currentVersion);
jsonObject.add("files", getFilesAsJson(projectURL, postbackKey));
jsonObject.addProperty("postbackUrl", projectURL + "/" + postbackKey + "/postback");
System.out.println(jsonObject);
return jsonObject;
}

View File

@@ -56,8 +56,9 @@ public class ResourceFetcher {
@Override
public byte[] onCompleted(Response response) throws Exception {
Util.sout(response.getStatusCode() + " " + response.getStatusText() + " (" + response.getResponseBody().length() + "B) -> " + url);
return bytes.toByteArray();
byte[] data = bytes.toByteArray();
Util.sout(response.getStatusCode() + " " + response.getStatusText() + " (" + data.length + "B) -> " + url);
return data;
}
}).get();