Skip to content

Commit

Permalink
docs: add more info on download-log
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Aug 21, 2017
1 parent 0c3abcb commit 362fe35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ private void fetchWithMultipleConnection(final List<ConnectionModel> connectionM
// [start, end), offset contain the start one, so need - 1.
// it has already done, so pass.
if (FileDownloadLog.NEED_LOG) {
FileDownloadLog.d(this, "pass connection[%d], because it has been completed",
connectionModel.getId());
FileDownloadLog.d(this, "pass connection[%d-%d], because it has been completed",
connectionModel.getId(), connectionModel.getIndex());
}
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ public void run() {

if (code != HttpURLConnection.HTTP_PARTIAL && code != HttpURLConnection.HTTP_OK) {
throw new SocketException(FileDownloadUtils.
formatString("Connection failed with code[%d] on task[%d], " +
formatString("Connection failed with request[%s] response[%s] http-state[%d] on task[%d-%d], " +
"which is changed after verify connection, so please try again.",
code, downloadId));
connectTask.getRequestHeader(), connection.getResponseHeaderFields(),
code, downloadId, connectionIndex));
}

isConnected = true;
Expand Down

0 comments on commit 362fe35

Please sign in to comment.