Skip to content

Commit

Permalink
Add some more info log output to show when we try to download images.
Browse files Browse the repository at this point in the history
  • Loading branch information
murraycu committed Dec 4, 2014
1 parent 0531927 commit 026d0ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ public static HttpURLConnection openConnection(final String strURL) {
}

public static boolean cacheUriToFileSync(final Context context, final RequestQueue requestQueue, final String uriFileToCache, final String cacheFileUri) {
Log.info("cacheUriToFileSync(): uriFileToCache=" + uriFileToCache);

final RequestFuture<Boolean> futureListener = RequestFuture.newFuture();
final Request<Boolean> request = new FileCacheRequest(context, uriFileToCache, cacheFileUri,
futureListener, futureListener);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ public List<Subject> requestMoreItemsSync(int count) {
public void requestMoreItemsAsync(int count, final Response.Listener<String> listener, final Response.ErrorListener errorListener) {
throwIfNoNetwork();

Log.info("requestMoreItemsAsync(): count=" + count);

final Request request = new ZooStringRequest(Request.Method.GET,
getQueryUri(count),
listener,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ boolean cacheUriToFile(final String uriFileToCache, final String cacheFileUri, f
mImageDownloadsInProgress.put(uriFileToCache, now);

if (asyncFileDownloads) {
Log.info("cacheUriToFile(): uriFileToCache=" + uriFileToCache);

final Request<Boolean> request = new HttpUtils.FileCacheRequest(getContext(), uriFileToCache, cacheFileUri,
new Response.Listener<Boolean>() {
@Override
Expand Down

0 comments on commit 026d0ff

Please sign in to comment.