From 6c5fcbaae46f07b5127d0f787b0f41ddb112fa84 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Mon, 31 Dec 2018 17:55:52 +0100 Subject: [PATCH] NearestFavoriteStationWidgetService: Log how long the widget waited for a location until it timed out. --- .../oeffi/stations/NearestFavoriteStationWidgetService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oeffi/src/de/schildbach/oeffi/stations/NearestFavoriteStationWidgetService.java b/oeffi/src/de/schildbach/oeffi/stations/NearestFavoriteStationWidgetService.java index 6d7e050..d5dec92 100644 --- a/oeffi/src/de/schildbach/oeffi/stations/NearestFavoriteStationWidgetService.java +++ b/oeffi/src/de/schildbach/oeffi/stations/NearestFavoriteStationWidgetService.java @@ -155,7 +155,8 @@ public class NearestFavoriteStationWidgetService extends JobIntentService { log.info("Widgets: {}, location: {}", Arrays.toString(appWidgetIds), here); handleLocation(appWidgetIds, here); } catch (final TimeoutException x) { - log.info("Widgets: {}, location timeout", Arrays.toString(appWidgetIds)); + log.info("Widgets: {}, location timed out after {} ms", Arrays.toString(appWidgetIds), + Constants.LOCATION_TIMEOUT_MS); widgetsHeader(appWidgetIds, getString(R.string.acquire_location_timeout)); } catch (final InterruptedException | ExecutionException x) { throw new RuntimeException(x);