summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2020-12-20 19:18:05 +0200
committermvglasow <michael -at- vonglasow.com>2020-12-20 19:18:05 +0200
commit79c996058f89b53a1e5806da5a325cc3c07e5fa1 (patch)
tree54b168df847f25cbe2528a260045513557ffb89c
parent40c62522c58190c4087a8c912b9b0b3a64072ed6 (diff)
downloadnavit-79c996058f89b53a1e5806da5a325cc3c07e5fa1.tar.gz
Fix:traffic/traff_android:Fix log messages when content URI is missing
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r--navit/android/src/org/navitproject/navit/NavitTraff.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/navit/android/src/org/navitproject/navit/NavitTraff.java b/navit/android/src/org/navitproject/navit/NavitTraff.java
index e3653a54f..7eaa31ec0 100644
--- a/navit/android/src/org/navitproject/navit/NavitTraff.java
+++ b/navit/android/src/org/navitproject/navit/NavitTraff.java
@@ -252,10 +252,11 @@ public class NavitTraff extends BroadcastReceiver {
Log.e(this.getClass().getSimpleName(), "subscription failed: no package name");
return;
} else if (data == null) {
- Log.d(this.getClass().getSimpleName(),
- String.format("subscription to %s successful, ID: %s, messages will be retrieved with the next poll operation",
+ Log.w(this.getClass().getSimpleName(),
+ String.format("subscription to %s successful (ID: %s) but no content URI was supplied. "
+ + "This is an issue with the source and may result in delayed message retrieval.",
packageName, subscriptionId));
- // FIXME poll for messages
+ subscriptions.put(subscriptionId, packageName);
return;
}
Log.d(TAG, "subscription to " + packageName + " successful, ID: " + subscriptionId);
@@ -283,10 +284,10 @@ public class NavitTraff extends BroadcastReceiver {
"subscription change failed: no subscription ID returned, URI " + data);
return;
} else if (data == null) {
- Log.d(this.getClass().getSimpleName(),
- String.format("subscription change for %s successful, the next poll will retrieve all messages",
+ Log.w(this.getClass().getSimpleName(),
+ String.format("subscription change for %s successful but no content URI was supplied. "
+ + "This is an issue with the source and may result in delayed message retrieval.",
subscriptionId));
- // FIXME poll for messages
return;
} else if (!subscriptions.containsKey(subscriptionId)) {
Log.e(this.getClass().getSimpleName(),