From e47b31c8c7fc247b7b29e3f83d4f5d928a5f8e52 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 22 Jan 2019 17:00:14 +0100 Subject: [PATCH] [localization] Increase usefulness of warning log for Localization sources It's impossible to understand what source is triggering these warning messages currently, so including the ID can be very helpful here I would think. --- .../mapboxsdk/plugins/localization/LocalizationPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin-localization/src/main/java/com/mapbox/mapboxsdk/plugins/localization/LocalizationPlugin.java b/plugin-localization/src/main/java/com/mapbox/mapboxsdk/plugins/localization/LocalizationPlugin.java index 01fb47a76..aaa2ac1bc 100644 --- a/plugin-localization/src/main/java/com/mapbox/mapboxsdk/plugins/localization/LocalizationPlugin.java +++ b/plugin-localization/src/main/java/com/mapbox/mapboxsdk/plugins/localization/LocalizationPlugin.java @@ -214,8 +214,8 @@ public void setMapLanguage(@NonNull MapLocale mapLocale) { if (url == null) { url = "not found"; } - Timber.w("The \"%s\" source is not based on Mapbox Vector Tiles. Supported sources:\n %s", - url, SUPPORTED_SOURCES); + Timber.w("The %s (%s) source is not based on Mapbox Vector Tiles. Supported sources:\n %s", + source.getId(), url, SUPPORTED_SOURCES); } } } @@ -345,4 +345,4 @@ private boolean sourceIsStreetsV8(Source source) { } return false; } -} \ No newline at end of file +}