Permalink
Browse files

Only log non-cached tile requests

  • Loading branch information...
1 parent 7da255a commit 59b55a51ff97a6fa8da8c6d9c35d61a33759e469 @tedjp committed Nov 3, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/au/id/tedp/mapdroid/TileServer.java
View
8 src/au/id/tedp/mapdroid/TileServer.java
@@ -69,12 +69,10 @@ public void requestTile(int zoom, float latitude, float longitude, Messenger not
protected boolean provideTileFromCache(int zoom, int x, int y, Messenger notify) {
Tile tile = memTileCache.getTile(zoom, x, y);
- if (tile == null) {
- Log.d("Mapdroid", String.format("Tile %d,%d not provided from cache", x, y));
+ if (tile == null)
return false;
- }
- Log.d("Mapdroid", String.format("Tile %d,%d PROVIDED FROM CACHE", x, y));
+ Log.d("Mapdroid", String.format("Requesting download of tile %d,%d", x, y));
Message response = TileDownloader.buildNotification(tile, true);
try {
@@ -88,8 +86,6 @@ protected boolean provideTileFromCache(int zoom, int x, int y, Messenger notify)
}
public void requestTile(int zoom, int x, int y, Messenger notify) {
- Log.d("Mapdroid", String.format("Requested tile %d,%d", x, y));
-
if (provideTileFromCache(zoom, x, y, notify))
return;

0 comments on commit 59b55a5

Please sign in to comment.