Make logging more informative.

Before it said:

>  "doDownload for http://... false"

Now it says:

> "Starting download for http://... (is resumable: false)"
This commit is contained in:
Peter Serwylo 2016-05-05 12:20:30 +10:00 committed by Hans-Christoph Steiner
parent 2c7033e367
commit 37ba565f5b

View File

@ -157,7 +157,7 @@ public class HttpDownloader extends Downloader {
if (isCached()) { if (isCached()) {
Utils.debugLog(TAG, sourceUrl + " is cached, so not downloading (HTTP " + statusCode + ")"); Utils.debugLog(TAG, sourceUrl + " is cached, so not downloading (HTTP " + statusCode + ")");
} else { } else {
Utils.debugLog(TAG, "doDownload for " + sourceUrl + " " + resumable); Utils.debugLog(TAG, "Need to download " + sourceUrl + " (is resumable: " + resumable + ")");
downloadFromStream(8192, resumable); downloadFromStream(8192, resumable);
updateCacheCheck(); updateCacheCheck();
} }