From d004970c053139ffd9448792eb383552722b2696 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Wed, 17 Jun 2020 19:21:52 +0800 Subject: [PATCH] Update http cancel log. (#433) --- .../java/com/mapbox/mapboxsdk/module/http/HttpRequestImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/http/HttpRequestImpl.java b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/http/HttpRequestImpl.java index e2616360c..e3199ed5a 100644 --- a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/http/HttpRequestImpl.java +++ b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/http/HttpRequestImpl.java @@ -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(); } }