NearestFavoriteStationWidgetService: Log how long the widget waited for a location until it timed out.

This commit is contained in:
Andreas Schildbach 2018-12-31 17:55:52 +01:00
parent 6964f22f5a
commit 6c5fcbaae4

View file

@ -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);