Update http cancel log. (#433)

This commit is contained in:
Kevin Li
2020-06-17 19:21:52 +08:00
committed by GitHub
parent 174105eb14
commit d004970c05

View File

@@ -90,7 +90,8 @@ public class HttpRequestImpl implements HttpRequest {
public void cancelRequest() {
// call can be null if the constructor gets aborted (e.g, under a NoRouteToHostException).
if (call != null) {
HttpLogger.log(Log.DEBUG, String.format("[HTTP] Cancel request %s", call.request().url()));
HttpLogger.log(Log.DEBUG, String.format("[HTTP] This request was cancelled (%s). This is expected for tiles"
+ " that were being prefetched but are no longer needed for the map to render.", call.request().url()));
call.cancel();
}
}